|
@@ -1,30 +0,0 @@
|
|
-package logic
|
|
|
|
-
|
|
|
|
-import (
|
|
|
|
- "context"
|
|
|
|
-
|
|
|
|
- "knowledge/internal/svc"
|
|
|
|
- "knowledge/internal/types"
|
|
|
|
-
|
|
|
|
- "github.com/tal-tech/go-zero/core/logx"
|
|
|
|
-)
|
|
|
|
-
|
|
|
|
-type KnowledgeLogic struct {
|
|
|
|
- logx.Logger
|
|
|
|
- ctx context.Context
|
|
|
|
- svcCtx *svc.ServiceContext
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func NewKnowledgeLogic(ctx context.Context, svcCtx *svc.ServiceContext) KnowledgeLogic {
|
|
|
|
- return KnowledgeLogic{
|
|
|
|
- Logger: logx.WithContext(ctx),
|
|
|
|
- ctx: ctx,
|
|
|
|
- svcCtx: svcCtx,
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-func (l *KnowledgeLogic) Knowledge(req types.Request) (*types.Response, error) {
|
|
|
|
- // todo: add your logic here and delete this line
|
|
|
|
-
|
|
|
|
- return &types.Response{}, nil
|
|
|
|
-}
|
|
|