feat: test ci cd
This commit is contained in:
@@ -65,9 +65,13 @@ func (l *ItemsLogic) Items(in *product.ItemsReq) (*product.Response, error) {
|
||||
return failResponse(utils.Fail), nil
|
||||
}
|
||||
|
||||
adminInfo := utils.GetUserFromCtx(l.ctx)
|
||||
if adminInfo.ID < utils.NumberOne {
|
||||
return failResponse(utils.ErrorNoLoginInfo), nil
|
||||
}
|
||||
adminId := int(adminInfo.ID)
|
||||
|
||||
items := make([]*product.Item, 0, len(info))
|
||||
// 管理员信息后续从 ctx / metadata 取
|
||||
adminId := 0
|
||||
for _, row := range info {
|
||||
if applyData, err := apply.Get(l.ctx, adminId, row.Id); err == nil {
|
||||
row.Edit = applyData.Status
|
||||
|
||||
Reference in New Issue
Block a user