managerserver.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: manager.proto
  3. package server
  4. import (
  5. "context"
  6. "app.yhyue.com/moapp/jyInfo/rpc/manager/internal/logic"
  7. "app.yhyue.com/moapp/jyInfo/rpc/manager/internal/svc"
  8. "app.yhyue.com/moapp/jyInfo/rpc/manager/type/manager"
  9. )
  10. type ManagerServer struct {
  11. svcCtx *svc.ServiceContext
  12. manager.UnimplementedManagerServer
  13. }
  14. func NewManagerServer(svcCtx *svc.ServiceContext) *ManagerServer {
  15. return &ManagerServer{
  16. svcCtx: svcCtx,
  17. }
  18. }
  19. // 信息列表
  20. func (s *ManagerServer) InfoList(ctx context.Context, in *manager.InfoListReq) (*manager.InfoListResp, error) {
  21. l := logic.NewInfoListLogic(ctx, s.svcCtx)
  22. return l.InfoList(in)
  23. }
  24. // 信息详情
  25. func (s *ManagerServer) InfoDetail(ctx context.Context, in *manager.InfoDetailReq) (*manager.InfoDetailResp, error) {
  26. l := logic.NewInfoDetailLogic(ctx, s.svcCtx)
  27. return l.InfoDetail(in)
  28. }
  29. // 信息审核
  30. func (s *ManagerServer) InfoExamine(ctx context.Context, in *manager.InfoExamineReq) (*manager.InfoExamineResp, error) {
  31. l := logic.NewInfoExamineLogic(ctx, s.svcCtx)
  32. return l.InfoExamine(in)
  33. }
  34. // 管理后台机构冻结
  35. func (s *ManagerServer) InstitutionsFreeze(ctx context.Context, in *manager.InstitutionsFreezeReq) (*manager.InfoResp, error) {
  36. l := logic.NewInstitutionsFreezeLogic(ctx, s.svcCtx)
  37. return l.InstitutionsFreeze(in)
  38. }