调整商户管理表
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user