feat: ad manager

This commit is contained in:
zzw
2026-08-21 17:38:39 +08:00
parent f05656580c
commit caafc455bb
34 changed files with 454 additions and 300 deletions
+1 -2
View File
@@ -2,7 +2,6 @@ package logic
import (
"context"
"lone-services/pkg/log"
"lone-services/pkg/modelbase"
"lone-services/pkg/utils"
"lone-services/pkg/validate"
@@ -42,7 +41,7 @@ func (l *InfoLogic) Info(in *product.InfoReq) (*product.Response, error) {
Eq: map[string]string{"id": strconv.FormatInt(req.Id, 10)},
}, &info)
if err != nil {
log.Errorf("product info: %v", err)
l.Errorf("product info: %v", err)
return failResponse(utils.Fail), nil
}
if info.Id < 1 {