change layout
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package logic
|
||||
|
||||
import (
|
||||
"context"
|
||||
lonelog "lone-services/rpc/lonelog/pb"
|
||||
"lone-services/services/lonelog/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
type ActionAddLogic struct {
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
logx.Logger
|
||||
}
|
||||
|
||||
func NewActionAddLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ActionAddLogic {
|
||||
return &ActionAddLogic{
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
Logger: logx.WithContext(ctx),
|
||||
}
|
||||
}
|
||||
|
||||
func (l *ActionAddLogic) ActionAdd(in *lonelog.ActionLog) (*lonelog.Response, error) {
|
||||
// todo: add your logic here and delete this line
|
||||
|
||||
return &lonelog.Response{}, nil
|
||||
}
|
||||
Reference in New Issue
Block a user