entmanageapplicationserver.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: entManageApplication.proto
  3. package server
  4. import (
  5. "context"
  6. "bp.jydev.jianyu360.cn/BaseService/entManageApplication/rpc/internal/logic"
  7. "bp.jydev.jianyu360.cn/BaseService/entManageApplication/rpc/internal/svc"
  8. "bp.jydev.jianyu360.cn/BaseService/entManageApplication/rpc/pb"
  9. )
  10. type EntManageApplicationServer struct {
  11. svcCtx *svc.ServiceContext
  12. pb.UnimplementedEntManageApplicationServer
  13. }
  14. func NewEntManageApplicationServer(svcCtx *svc.ServiceContext) *EntManageApplicationServer {
  15. return &EntManageApplicationServer{
  16. svcCtx: svcCtx,
  17. }
  18. }
  19. func (s *EntManageApplicationServer) BuyProductList(ctx context.Context, in *pb.BuyProductListReq) (*pb.BuyProductListResp, error) {
  20. l := logic.NewBuyProductListLogic(ctx, s.svcCtx)
  21. return l.BuyProductList(in)
  22. }
  23. func (s *EntManageApplicationServer) UsePersonList(ctx context.Context, in *pb.UsePersonListReq) (*pb.UsePersonListResp, error) {
  24. l := logic.NewUsePersonListLogic(ctx, s.svcCtx)
  25. return l.UsePersonList(in)
  26. }
  27. func (s *EntManageApplicationServer) AddUsePerson(ctx context.Context, in *pb.AddUsePersonReq) (*pb.AddUsePersonResp, error) {
  28. l := logic.NewAddUsePersonLogic(ctx, s.svcCtx)
  29. return l.AddUsePerson(in)
  30. }
  31. func (s *EntManageApplicationServer) DelUsePerson(ctx context.Context, in *pb.DelUsePersonReq) (*pb.AddUsePersonResp, error) {
  32. l := logic.NewDelUsePersonLogic(ctx, s.svcCtx)
  33. return l.DelUsePerson(in)
  34. }
  35. func (s *EntManageApplicationServer) EmpowerUserIds(ctx context.Context, in *pb.EmpowerUserIds) (*pb.EmpowerUserIds, error) {
  36. l := logic.NewEmpowerUserIdsLogic(ctx, s.svcCtx)
  37. return l.EmpowerUserIds(in)
  38. }