新增管理员用户删除,修改反馈,任务列表
This commit is contained in:
@ -13,7 +13,14 @@ func (c *ControllerV1) Create(ctx context.Context, req *v1.CreateReq) (res *v1.C
|
||||
fromCtx := g.RequestFromCtx(ctx)
|
||||
operatorId := fromCtx.GetCtxVar("id").Int64()
|
||||
operatorRole := fromCtx.GetCtxVar("role").String()
|
||||
out, err := service.RewardType().Create(ctx, &model.RewardTypeCreateIn{OperatorId: operatorId, OperatorRole: operatorRole, Name: req.Name, Description: req.Description, Source: req.Source, Status: req.Status, StoreId: req.StoreId})
|
||||
out, err := service.RewardType().Create(ctx, &model.RewardTypeCreateIn{
|
||||
OperatorId: operatorId,
|
||||
OperatorRole: operatorRole,
|
||||
Name: req.Name,
|
||||
Description: req.Description,
|
||||
Source: req.Source,
|
||||
Status: req.Status,
|
||||
StoreId: req.StoreId})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user