sqlmanagelogic.go 814 B

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