sqlmanagelogic.go 767 B

1234567891011121314151617181920212223242526272829303132333435
  1. package logic
  2. import (
  3. "context"
  4. "bp.jydev.jianyu360.cn/BaseService/biService/service"
  5. "bp.jydev.jianyu360.cn/BaseService/biService/rpc/internal/svc"
  6. "bp.jydev.jianyu360.cn/BaseService/biService/rpc/pb"
  7. "github.com/zeromicro/go-zero/core/logx"
  8. )
  9. type SqlManageLogic struct {
  10. ctx context.Context
  11. svcCtx *svc.ServiceContext
  12. logx.Logger
  13. }
  14. func NewSqlManageLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SqlManageLogic {
  15. return &SqlManageLogic{
  16. ctx: ctx,
  17. svcCtx: svcCtx,
  18. Logger: logx.WithContext(ctx),
  19. }
  20. }
  21. func (l *SqlManageLogic) SqlManage(in *pb.SqlManageReq) (*pb.BiReply, error) {
  22. // todo: add your logic here and delete this line
  23. v := service.SqlService{}
  24. data := v.SqlManage(in)
  25. return &pb.BiReply{
  26. Data: data,
  27. }, nil
  28. }