entexaminelogic.go 807 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package logic
  2. import (
  3. "context"
  4. "bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/internal/svc"
  5. "bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/pb"
  6. "github.com/zeromicro/go-zero/core/logx"
  7. )
  8. type EntExamineLogic struct {
  9. ctx context.Context
  10. svcCtx *svc.ServiceContext
  11. logx.Logger
  12. }
  13. func NewEntExamineLogic(ctx context.Context, svcCtx *svc.ServiceContext) *EntExamineLogic {
  14. return &EntExamineLogic{
  15. ctx: ctx,
  16. svcCtx: svcCtx,
  17. Logger: logx.WithContext(ctx),
  18. }
  19. }
  20. // 机构审核
  21. func (l *EntExamineLogic) EntExamine(in *pb.ExamineReq) (*pb.ExamineResp, error) {
  22. // todo: add your logic here and delete this line
  23. status, msg, code := Entservice.Examinet(in)
  24. return &pb.ExamineResp{
  25. ErrorCode: code,
  26. ErrorMsg: msg,
  27. Data: &pb.ExamineData{
  28. Status: status,
  29. },
  30. }, nil
  31. }