feat: ad manager
This commit is contained in:
@@ -2,7 +2,6 @@ package logic
|
||||
|
||||
import (
|
||||
"context"
|
||||
"lone-services/pkg/log"
|
||||
"lone-services/pkg/modelbase"
|
||||
"lone-services/pkg/utils"
|
||||
"lone-services/pkg/validate"
|
||||
@@ -62,7 +61,7 @@ func (l *VerifyLogic) Verify(in *product.VerifyReq) (*product.Response, error) {
|
||||
var rows []dao.ProductVerifyListRow
|
||||
result, err := model.ProductModel{}.Init().Page(w, &rows)
|
||||
if err != nil {
|
||||
log.Errorf("product verify list: %v", err)
|
||||
l.Errorf("product verify list: %v", err)
|
||||
return failResponse(utils.Fail), nil
|
||||
}
|
||||
|
||||
@@ -89,7 +88,7 @@ func (l *VerifyLogic) Verify(in *product.VerifyReq) (*product.Response, error) {
|
||||
var verifies []dao.VerifyInfo
|
||||
err = model.VerifyModel{}.Init().Items(ww, &verifies)
|
||||
if err != nil {
|
||||
log.Errorf("verify info items: %v", err)
|
||||
l.Errorf("verify info items: %v", err)
|
||||
return failResponse(utils.Fail), nil
|
||||
}
|
||||
|
||||
@@ -106,7 +105,7 @@ func (l *VerifyLogic) Verify(in *product.VerifyReq) (*product.Response, error) {
|
||||
var content dao.ProductVerify
|
||||
err = jsoniter.Unmarshal([]byte(v.Content), &content)
|
||||
if err != nil {
|
||||
log.Errorf("product verify content json: %v", err)
|
||||
l.Errorf("product verify content json: %v", err)
|
||||
return failResponse(utils.ErrorFormatDataError), nil
|
||||
}
|
||||
items = append(items, &product.VerifyItem{
|
||||
|
||||
Reference in New Issue
Block a user