新增根据网关账号获取门店信息
This commit is contained in:
@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user