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 ExamineInfoLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } func NewExamineInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ExamineInfoLogic { return &ExamineInfoLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *ExamineInfoLogic) ExamineInfo(req *types.ExamineInfoReq) (resp *types.ExamineInfoResp, err error) { // todo: add your logic here and delete this line res, err := entity.UserCenterRpc.ExamineInfo(l.ctx, &pb.CheckExamineReq{ ExamineId: req.ExamineId, }) data := &types.ExamineInfo{ Name: res.Data.Name, OrganizationType: res.Data.OrganizationType, CreditCode: res.Data.CreditCode, CompanyType: res.Data.CompanyType, AreaNumber: res.Data.AreaNumber, Business: res.Data.Business, OfficialLetter: res.Data.OfficialLetter, AuthState: res.Data.AuthState, ContactPerson: res.Data.ContactPerson, ContactPhone: res.Data.ContactPhone, RegPhone: res.Data.RegPhone, AuthTime: res.Data.AuthTime, AuthReason: res.Data.AuthReason, AuditUser: res.Data.AuditUser, AuditTime: res.Data.AuditTime, } return &types.ExamineInfoResp{ Error_code: res.ErrorCode, Error_msg: res.ErrorMsg, Data: data, }, err }