You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
578 B

package api
import (
"yunyan/comm"
"yunyan/lego/sys/log"
"yunyan/pb"
)
// 删除品牌商
func (this *apiComp) DelBrand(session comm.IUserSession, req *pb.ApiDelBrandReq) (resp *pb.ApiDelBrandResp, errdata *pb.ErrorData) {
var (
err error
)
if err = this.module.model.delfactory(req.Id); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Message: err.Error(),
}
this.module.Error("DelBrand Fail!", log.Field{Key: "req", Value: req.String()}, log.Field{Key: "err", Value: err.Error()})
return
}
resp = &pb.ApiDelBrandResp{}
return
}