identitybyentidlogic.go 738 B

1234567891011121314151617181920212223242526272829
  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. "bp.jydev.jianyu360.cn/BaseService/userCenter/service"
  7. "github.com/zeromicro/go-zero/core/logx"
  8. )
  9. type IdentityByEntIdLogic struct {
  10. ctx context.Context
  11. svcCtx *svc.ServiceContext
  12. logx.Logger
  13. }
  14. func NewIdentityByEntIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *IdentityByEntIdLogic {
  15. return &IdentityByEntIdLogic{
  16. ctx: ctx,
  17. svcCtx: svcCtx,
  18. Logger: logx.WithContext(ctx),
  19. }
  20. }
  21. // 根据企业id获取身份信息
  22. func (l *IdentityByEntIdLogic) IdentityByEntId(in *pb.IdentityReq) (*pb.Identity, error) {
  23. return service.IdentityByEntId(in.Id), nil
  24. }