first commit
This commit is contained in:
35
apps/api/internal/logic/QYGL/qygl2acdlogic.go
Normal file
35
apps/api/internal/logic/QYGL/qygl2acdlogic.go
Normal file
@@ -0,0 +1,35 @@
|
||||
package QYGL
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"tianyuan-api/apps/api/internal/svc"
|
||||
"tianyuan-api/apps/api/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
type QYGL2ACDLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
}
|
||||
|
||||
func NewQYGL2ACDLogic(ctx context.Context, svcCtx *svc.ServiceContext) *QYGL2ACDLogic {
|
||||
return &QYGL2ACDLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
}
|
||||
}
|
||||
|
||||
func (l *QYGL2ACDLogic) QYGL2ACD(req *types.Request) (resp *types.Response, err error) {
|
||||
data := "zhangSan"
|
||||
err = l.svcCtx.KqPusherClient.Push(l.ctx, data)
|
||||
if err != nil {
|
||||
logx.Errorf("KqPusherClient Push Error , err :%v", err)
|
||||
}
|
||||
return &types.Response{
|
||||
Data: "三要素合演",
|
||||
}, nil
|
||||
}
|
||||
Reference in New Issue
Block a user