30 lines
626 B
Go
30 lines
626 B
Go
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
|
|
}
|