findcompanyorganlogic.go 975 B

123456789101112131415161718192021222324252627282930313233
  1. package logic
  2. import (
  3. "app.yhyue.com/moapp/jyResourcesCenter/rpc/internal/svc"
  4. "app.yhyue.com/moapp/jyResourcesCenter/rpc/resourcesCenter"
  5. "app.yhyue.com/moapp/jyResourcesCenter/service"
  6. "context"
  7. "github.com/tal-tech/go-zero/core/logx"
  8. )
  9. type FindCompanyOrganLogic struct {
  10. ctx context.Context
  11. svcCtx *svc.ServiceContext
  12. logx.Logger
  13. }
  14. func NewFindCompanyOrganLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindCompanyOrganLogic {
  15. return &FindCompanyOrganLogic{
  16. ctx: ctx,
  17. svcCtx: svcCtx,
  18. Logger: logx.WithContext(ctx),
  19. }
  20. }
  21. var companyCenterService service.CompanyCenterService
  22. // 查询用户组织信息
  23. func (l *FindCompanyOrganLogic) FindCompanyOrgan(in *resourcesCenter.OrganRequest) (*resourcesCenter.CompanyOrganResponse, error) {
  24. // todo: add your logic here and delete this line
  25. code, msg, data := companyCenterService.CompanyOrgan(in)
  26. return &resourcesCenter.CompanyOrganResponse{Code: code, Message: msg, Data: data}, nil
  27. }