first commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
// Code generated by goctl. DO NOT EDIT.
|
||||
// goctl 1.7.2
|
||||
// Source: sentinel.proto
|
||||
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"tianyuan-api/apps/sentinel/internal/logic/userproduct"
|
||||
"tianyuan-api/apps/sentinel/internal/svc"
|
||||
"tianyuan-api/apps/sentinel/sentinel"
|
||||
)
|
||||
|
||||
type UserProductServer struct {
|
||||
svcCtx *svc.ServiceContext
|
||||
sentinel.UnimplementedUserProductServer
|
||||
}
|
||||
|
||||
func NewUserProductServer(svcCtx *svc.ServiceContext) *UserProductServer {
|
||||
return &UserProductServer{
|
||||
svcCtx: svcCtx,
|
||||
}
|
||||
}
|
||||
|
||||
// UserProduct methods
|
||||
func (s *UserProductServer) CreateUserProduct(ctx context.Context, in *sentinel.CreateUserProductRequest) (*sentinel.UserProductEmptyResponse, error) {
|
||||
l := userproductlogic.NewCreateUserProductLogic(ctx, s.svcCtx)
|
||||
return l.CreateUserProduct(in)
|
||||
}
|
||||
|
||||
func (s *UserProductServer) GetUserProductPageList(ctx context.Context, in *sentinel.UserProuctPageListRequest) (*sentinel.UserProductResponse, error) {
|
||||
l := userproductlogic.NewGetUserProductPageListLogic(ctx, s.svcCtx)
|
||||
return l.GetUserProductPageList(in)
|
||||
}
|
||||
|
||||
func (s *UserProductServer) MatchingUserIdProductCode(ctx context.Context, in *sentinel.MatchingUserIdProductCodeRequest) (*sentinel.MatchResponse, error) {
|
||||
l := userproductlogic.NewMatchingUserIdProductCodeLogic(ctx, s.svcCtx)
|
||||
return l.MatchingUserIdProductCode(in)
|
||||
}
|
||||
Reference in New Issue
Block a user