entmanageapplicationserver.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. }
  13. func NewEntManageApplicationServer(svcCtx *svc.ServiceContext) *EntManageApplicationServer {
  14. return &EntManageApplicationServer{
  15. svcCtx: svcCtx,
  16. }
  17. }
  18. func (s *EntManageApplicationServer) BuyProductList(ctx context.Context, in *pb.BuyProductListReq) (*pb.BuyProductListResp, error) {
  19. l := logic.NewBuyProductListLogic(ctx, s.svcCtx)
  20. return l.BuyProductList(in)
  21. }
  22. func (s *EntManageApplicationServer) UsePersonList(ctx context.Context, in *pb.UsePersonListReq) (*pb.UsePersonListResp, error) {
  23. l := logic.NewUsePersonListLogic(ctx, s.svcCtx)
  24. return l.UsePersonList(in)
  25. }
  26. func (s *EntManageApplicationServer) AddUsePerson(ctx context.Context, in *pb.AddUsePersonReq) (*pb.AddUsePersonResp, error) {
  27. l := logic.NewAddUsePersonLogic(ctx, s.svcCtx)
  28. return l.AddUsePerson(in)
  29. }
  30. func (s *EntManageApplicationServer) DelUsePerson(ctx context.Context, in *pb.DelUsePersonReq) (*pb.AddUsePersonResp, error) {
  31. l := logic.NewDelUsePersonLogic(ctx, s.svcCtx)
  32. return l.DelUsePerson(in)
  33. }