codeserviceserver.go 765 B

12345678910111213141516171819202122232425262728
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: codeService.proto
  3. package server
  4. import (
  5. "context"
  6. "bp.jydev.jianyu360.cn/BaseService/jyCodeService/rpc/codeservice/internal/logic"
  7. "bp.jydev.jianyu360.cn/BaseService/jyCodeService/rpc/codeservice/internal/svc"
  8. "bp.jydev.jianyu360.cn/BaseService/jyCodeService/rpc/codeservice/pb"
  9. )
  10. type CodeServiceServer struct {
  11. svcCtx *svc.ServiceContext
  12. pb.UnimplementedCodeServiceServer
  13. }
  14. func NewCodeServiceServer(svcCtx *svc.ServiceContext) *CodeServiceServer {
  15. return &CodeServiceServer{
  16. svcCtx: svcCtx,
  17. }
  18. }
  19. func (s *CodeServiceServer) CodeTransformation(ctx context.Context, in *pb.Request) (*pb.Response, error) {
  20. l := logic.NewCodeTransformationLogic(ctx, s.svcCtx)
  21. return l.CodeTransformation(in)
  22. }