biserviceserver.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Code generated by goctl. DO NOT EDIT.
  2. // Source: biService.proto
  3. package server
  4. import (
  5. "context"
  6. "bp.jydev.jianyu360.cn/BaseService/biService/rpc/internal/logic"
  7. "bp.jydev.jianyu360.cn/BaseService/biService/rpc/internal/svc"
  8. "bp.jydev.jianyu360.cn/BaseService/biService/rpc/pb"
  9. )
  10. type BiServiceServer struct {
  11. svcCtx *svc.ServiceContext
  12. pb.UnimplementedBiServiceServer
  13. }
  14. func NewBiServiceServer(svcCtx *svc.ServiceContext) *BiServiceServer {
  15. return &BiServiceServer{
  16. svcCtx: svcCtx,
  17. }
  18. }
  19. func (s *BiServiceServer) MyDataAsset(ctx context.Context, in *pb.MyDataAssetReq) (*pb.MyDataAssetResp, error) {
  20. l := logic.NewMyDataAssetLogic(ctx, s.svcCtx)
  21. return l.MyDataAsset(in)
  22. }
  23. func (s *BiServiceServer) AddProject(ctx context.Context, in *pb.AddProjectReq) (*pb.AddProjectResp, error) {
  24. l := logic.NewAddProjectLogic(ctx, s.svcCtx)
  25. return l.AddProject(in)
  26. }
  27. func (s *BiServiceServer) GetInfoId(ctx context.Context, in *pb.AddProjectReq) (*pb.GetInfoIdResp, error) {
  28. l := logic.NewGetInfoIdLogic(ctx, s.svcCtx)
  29. return l.GetInfoId(in)
  30. }
  31. func (s *BiServiceServer) DrawClue(ctx context.Context, in *pb.DrawClueReq) (*pb.AddProjectResp, error) {
  32. l := logic.NewDrawClueLogic(ctx, s.svcCtx)
  33. return l.DrawClue(in)
  34. }