first commit
This commit is contained in:
24
gateway/api/v1/internal/logic/test/testlogic.go
Normal file
24
gateway/api/v1/internal/logic/test/testlogic.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package logic
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"gitlab.33.cn/chat/dtalk/gateway/api/v1/internal/svc"
|
||||
"gitlab.33.cn/chat/dtalk/gateway/api/v1/internal/types"
|
||||
)
|
||||
|
||||
type TestLogic struct {
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
}
|
||||
|
||||
func NewTestLogic(ctx context.Context, svcCtx *svc.ServiceContext) TestLogic {
|
||||
return TestLogic{
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
}
|
||||
}
|
||||
|
||||
func (l *TestLogic) GetHelloWorld() (*types.Hello, error) {
|
||||
return &types.Hello{Content: "hello world"}, nil
|
||||
}
|
||||
Reference in New Issue
Block a user