bxcolserver.go 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: bxcollection.proto
  3. package server
  4. import (
  5. "context"
  6. "jyMicroservices/jyBXAdditional/rpc/bxcollection/bxcol"
  7. "jyMicroservices/jyBXAdditional/rpc/bxcollection/internal/logic"
  8. "jyMicroservices/jyBXAdditional/rpc/bxcollection/internal/svc"
  9. )
  10. type BxcolServer struct {
  11. svcCtx *svc.ServiceContext
  12. bxcol.UnimplementedBxcolServer
  13. }
  14. func NewBxcolServer(svcCtx *svc.ServiceContext) *BxcolServer {
  15. return &BxcolServer{
  16. svcCtx: svcCtx,
  17. }
  18. }
  19. // 新增标签
  20. func (s *BxcolServer) Addlabel(ctx context.Context, in *bxcol.AddlabelReq) (*bxcol.AddlabelRes, error) {
  21. l := logic.NewAddlabelLogic(ctx, s.svcCtx)
  22. return l.Addlabel(in)
  23. }
  24. // 获取标签
  25. func (s *BxcolServer) GetLabelAction(ctx context.Context, in *bxcol.GetLabelActionReq) (*bxcol.GetLabelActionRes, error) {
  26. l := logic.NewGetLabelActionLogic(ctx, s.svcCtx)
  27. return l.GetLabelAction(in)
  28. }
  29. // 标签新增或删除
  30. func (s *BxcolServer) LabelAction(ctx context.Context, in *bxcol.LabelActionReq) (*bxcol.LabelActionRes, error) {
  31. l := logic.NewLabelActionLogic(ctx, s.svcCtx)
  32. return l.LabelAction(in)
  33. }
  34. // 招标信息收藏
  35. func (s *BxcolServer) BCAction(ctx context.Context, in *bxcol.BCActionReq) (*bxcol.LabelActionRes, error) {
  36. l := logic.NewBCActionLogic(ctx, s.svcCtx)
  37. return l.BCAction(in)
  38. }
  39. // 招标信息是否被收藏
  40. func (s *BxcolServer) IsCollAction(ctx context.Context, in *bxcol.IsCollActionReq) (*bxcol.IsCollActionRes, error) {
  41. l := logic.NewIsCollActionLogic(ctx, s.svcCtx)
  42. return l.IsCollAction(in)
  43. }
  44. // 获取收藏列表
  45. func (s *BxcolServer) List(ctx context.Context, in *bxcol.ListReq) (*bxcol.ListRes, error) {
  46. l := logic.NewListLogic(ctx, s.svcCtx)
  47. return l.List(in)
  48. }