mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-15 09:10:24 +08:00
支持套餐相关操作
This commit is contained in:
@@ -15,8 +15,13 @@ type UserPlanService struct {
|
||||
}
|
||||
|
||||
// CreateUserPlan 添加已购套餐
|
||||
func (this *UserPlanService) CreateUserPlan(ctx context.Context, req *pb.CreateUserPlanRequest) (*pb.CreateUserPlanResponse, error) {
|
||||
return &pb.CreateUserPlanResponse{UserPlanId: 0}, nil
|
||||
func (this *UserPlanService) BuyUserPlan(ctx context.Context, req *pb.BuyUserPlanRequest) (*pb.BuyUserPlanResponse, error) {
|
||||
return &pb.BuyUserPlanResponse{UserPlanId: 0}, nil
|
||||
}
|
||||
|
||||
// RenewUserPlan 续费套餐
|
||||
func (this *UserPlanService) RenewUserPlan(ctx context.Context, req *pb.RenewUserPlanRequest) (*pb.RPCSuccess, error) {
|
||||
return this.Success()
|
||||
}
|
||||
|
||||
// FindEnabledUserPlan 查找单个已购套餐信息
|
||||
@@ -43,3 +48,8 @@ func (this *UserPlanService) CountAllEnabledUserPlans(ctx context.Context, req *
|
||||
func (this *UserPlanService) ListEnabledUserPlans(ctx context.Context, req *pb.ListEnabledUserPlansRequest) (*pb.ListEnabledUserPlansResponse, error) {
|
||||
return &pb.ListEnabledUserPlansResponse{UserPlans: nil}, nil
|
||||
}
|
||||
|
||||
// FindAllEnabledUserPlansForServer 查找所有服务可用的套餐
|
||||
func (this *UserPlanService) FindAllEnabledUserPlansForServer(ctx context.Context, req *pb.FindAllEnabledUserPlansForServerRequest) (*pb.FindAllEnabledUserPlansForServerResponse, error) {
|
||||
return &pb.FindAllEnabledUserPlansForServerResponse{}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user