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"
|
||||
@@ -72,7 +71,7 @@ func (l *EditSusceptibleLogic) EditSusceptible(in *product.EditSusceptibleReq) (
|
||||
var old dao.ProductEditSusceptible
|
||||
err := model.ProductModel{}.Init().GetOne(w, &old)
|
||||
if err != nil {
|
||||
log.Errorf("edit susceptible get: %v", err)
|
||||
l.Errorf("edit susceptible get: %v", err)
|
||||
return failResponse(utils.Fail), nil
|
||||
}
|
||||
if old.Id < 1 {
|
||||
@@ -97,7 +96,7 @@ func (l *EditSusceptibleLogic) EditSusceptible(in *product.EditSusceptibleReq) (
|
||||
|
||||
contentBytes, err := jsoniter.Marshal(data)
|
||||
if err != nil {
|
||||
log.Errorf("edit susceptible marshal: %v", err)
|
||||
l.Errorf("edit susceptible marshal: %v", err)
|
||||
return failResponse(utils.Fail), nil
|
||||
}
|
||||
|
||||
@@ -116,7 +115,7 @@ func (l *EditSusceptibleLogic) EditSusceptible(in *product.EditSusceptibleReq) (
|
||||
return model.VerifyModel{}.Init().WithTX(tx).Create(&verify)
|
||||
})
|
||||
if err != nil {
|
||||
log.Errorf("edit susceptible tx: %v", err)
|
||||
l.Errorf("edit susceptible tx: %v", err)
|
||||
return failResponse(utils.Fail), nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user