12345678910111213141516171819202122232425262728293031323334 |
- package logic
- import (
- "bp.jydev.jianyu360.cn/BaseService/biService/service"
- "context"
- "bp.jydev.jianyu360.cn/BaseService/biService/rpc/internal/svc"
- "bp.jydev.jianyu360.cn/BaseService/biService/rpc/pb"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type SqlManageLogic struct {
- ctx context.Context
- svcCtx *svc.ServiceContext
- logx.Logger
- }
- func NewSqlManageLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SqlManageLogic {
- return &SqlManageLogic{
- ctx: ctx,
- svcCtx: svcCtx,
- Logger: logx.WithContext(ctx),
- }
- }
- func (l *SqlManageLogic) SqlManage(in *pb.SqlManageReq) (*pb.Reply, error) {
- // todo: add your logic here and delete this line
- v := service.SqlService{}
- data := v.SqlManage(in)
- return &pb.Reply{
- Data: data,
- }, nil
- }
|