package logic import ( "context" "bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/svc" "bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/types" "bp.jydev.jianyu360.cn/BaseService/userCenter/entity" "bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/pb" "github.com/zeromicro/go-zero/core/logx" ) type ExamineLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } func NewExamineLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ExamineLogic { return &ExamineLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *ExamineLogic) Examine(req *types.ExamineReq) (resp *types.Resp, err error) { // todo: add your logic here and delete this line res, err := entity.UserCenterRpc.EntExamine(l.ctx, &pb.ExamineReq{ EntId: req.EntId, AuthType: req.AuthType, Reason: req.Reason, AuditUser: req.AuditUser, ExamineId: req.ExamineId, }) return &types.Resp{ Error_code: res.ErrorCode, Error_msg: res.ErrorMsg, Data: res.Data, }, err }