You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
533 B
30 lines
533 B
package logic
|
|
|
|
import (
|
|
"context"
|
|
|
|
"demo/internal/svc"
|
|
"demo/internal/types"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type DemoLogic struct {
|
|
logx.Logger
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
}
|
|
|
|
func NewDemoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DemoLogic {
|
|
return &DemoLogic{
|
|
Logger: logx.WithContext(ctx),
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (l *DemoLogic) Demo(req *types.Request) (resp *types.Response, err error) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return
|
|
}
|
|
|