新增根据网关账号获取门店信息

This commit is contained in:
chy
2025-07-08 19:25:20 +08:00
parent afa6b8bcd1
commit e3ee281c7f
9 changed files with 57 additions and 1 deletions

View File

@ -0,0 +1,20 @@
package store
import (
"context"
"server/internal/model"
"server/api/store/v1"
"server/internal/service"
)
func (c *ControllerV1) GetStoreInfoByNetbar(ctx context.Context, req *v1.GetStoreInfoByNetbarReq) (res *v1.GetStoreInfoByNetbarRes, err error) {
out, err := service.Store().GetStoreInfoByNetbarAccount(ctx, &model.StoreByNetbarAccountIn{NetbarAccount: req.NetbarAccount})
if err != nil {
return nil, err
}
return &v1.GetStoreInfoByNetbarRes{
Store: out.Store,
}, nil
}