04402a8bdf
CI / changes (push) Successful in 36s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 18s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 0s
CI / product (push) Successful in 0s
CI / record (push) Successful in 20s
CI / sale (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 1s
45 lines
1.1 KiB
Go
45 lines
1.1 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.10.2
|
|
// Source: record.proto
|
|
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"lone-services/rpc/record/pb"
|
|
"lone-services/services/record/internal/logic"
|
|
"lone-services/services/record/internal/svc"
|
|
)
|
|
|
|
type RecordServer struct {
|
|
svcCtx *svc.ServiceContext
|
|
record.UnimplementedRecordServer
|
|
}
|
|
|
|
func NewRecordServer(svcCtx *svc.ServiceContext) *RecordServer {
|
|
return &RecordServer{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (s *RecordServer) Items(ctx context.Context, in *record.ItemsRequest) (*record.Response, error) {
|
|
l := logic.NewItemsLogic(ctx, s.svcCtx)
|
|
return l.Items(in)
|
|
}
|
|
|
|
func (s *RecordServer) LoginItems(ctx context.Context, in *record.ItemsRequest) (*record.Response, error) {
|
|
l := logic.NewLoginItemsLogic(ctx, s.svcCtx)
|
|
return l.LoginItems(in)
|
|
}
|
|
|
|
func (s *RecordServer) ActionAdd(ctx context.Context, in *record.ActionLog) (*record.Response, error) {
|
|
l := logic.NewActionAddLogic(ctx, s.svcCtx)
|
|
return l.ActionAdd(in)
|
|
}
|
|
|
|
func (s *RecordServer) LoginAdd(ctx context.Context, in *record.LoginLog) (*record.Response, error) {
|
|
l := logic.NewLoginAddLogic(ctx, s.svcCtx)
|
|
return l.LoginAdd(in)
|
|
}
|