commonclientserver.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: common.proto
  3. package server
  4. import (
  5. "context"
  6. "app.yhyue.com/moapp/jyInfo/rpc/common/internal/logic"
  7. "app.yhyue.com/moapp/jyInfo/rpc/common/internal/svc"
  8. "app.yhyue.com/moapp/jyInfo/rpc/common/type/common"
  9. )
  10. type CommonClientServer struct {
  11. svcCtx *svc.ServiceContext
  12. common.UnimplementedCommonClientServer
  13. }
  14. func NewCommonClientServer(svcCtx *svc.ServiceContext) *CommonClientServer {
  15. return &CommonClientServer{
  16. svcCtx: svcCtx,
  17. }
  18. }
  19. // 获取省份信息(暂不用)
  20. func (s *CommonClientServer) AreaInfo(ctx context.Context, in *common.ProjectReq) (*common.AreaResp, error) {
  21. l := logic.NewAreaInfoLogic(ctx, s.svcCtx)
  22. return l.AreaInfo(in)
  23. }
  24. // 获取行业信息(暂不用)
  25. func (s *CommonClientServer) IndustryInfo(ctx context.Context, in *common.ProjectReq) (*common.IndustryResp, error) {
  26. l := logic.NewIndustryInfoLogic(ctx, s.svcCtx)
  27. return l.IndustryInfo(in)
  28. }
  29. // 修改信息发布状态
  30. func (s *CommonClientServer) StateMethod(ctx context.Context, in *common.StateRequest) (*common.StateResponse, error) {
  31. l := logic.NewStateMethodLogic(ctx, s.svcCtx)
  32. return l.StateMethod(in)
  33. }
  34. //
  35. func (s *CommonClientServer) SensitiveMethod(ctx context.Context, in *common.SensitiveRequest) (*common.SensitiveResponse, error) {
  36. l := logic.NewSensitiveMethodLogic(ctx, s.svcCtx)
  37. return l.SensitiveMethod(in)
  38. }