调整商户管理表

This commit is contained in:
2025-06-11 16:01:00 +08:00
parent 82d8944e7a
commit ed243f4e9d
10 changed files with 32 additions and 30 deletions

View File

@ -23,7 +23,15 @@ func init() {
}
func (s *sStore) List(ctx context.Context, in *model.StoreListIn) (out *model.StoreListOut, err error) {
// 1. 初始化返回数据
return
list := make([]model.Store, 0)
var total int
if err = dao.Stores.Ctx(ctx).Page(in.Page, in.Size).ScanAndCount(&list, &total, false); err != nil {
return nil, ecode.Fail.Sub("门店列表获取失败")
}
return &model.StoreListOut{
List: list,
Total: total,
}, nil
}
func (s *sStore) Create(ctx context.Context, in *model.StoreCreateIn) (out *model.CreateOut, err error) {