feat: test ci cd

This commit is contained in:
zzw
2026-08-11 17:12:37 +08:00
parent 72a3a26d72
commit 424e67acdc
24 changed files with 340 additions and 94 deletions
+6 -2
View File
@@ -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