12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- package logic
- import (
- "context"
- "userCenter/api/internal/svc"
- "userCenter/api/internal/types"
- "userCenter/entity"
- "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
- }
|