小程序虚拟支付
This commit is contained in:
@@ -77,3 +77,37 @@ func (c *cAdminAuth) FeedbackList(ctx context.Context, req *v1.FeedbackListReq)
|
||||
func (c *cAdminAuth) FeedbackHandle(ctx context.Context, req *v1.FeedbackHandleReq) (res *v1.FeedbackHandleRes, err error) {
|
||||
return logic.AdminFeedbackHandle(ctx, req.Id)
|
||||
}
|
||||
|
||||
// ===== 额度配置(次数包 / 额度设置 / 会员套餐 / 用户周期)=====
|
||||
|
||||
func (c *cAdminAuth) QuotaPackList(ctx context.Context, req *v1.QuotaPackListReq) (res *v1.QuotaPackListRes, err error) {
|
||||
return logic.AdminQuotaPackList(ctx)
|
||||
}
|
||||
|
||||
func (c *cAdminAuth) QuotaPackSave(ctx context.Context, req *v1.QuotaPackSaveReq) (res *v1.QuotaPackSaveRes, err error) {
|
||||
return logic.AdminQuotaPackSave(ctx, req)
|
||||
}
|
||||
|
||||
func (c *cAdminAuth) QuotaPackToggle(ctx context.Context, req *v1.QuotaPackToggleReq) (res *v1.QuotaPackToggleRes, err error) {
|
||||
return logic.AdminQuotaPackToggle(ctx, req.Id, req.Value)
|
||||
}
|
||||
|
||||
func (c *cAdminAuth) QuotaSettingGet(ctx context.Context, req *v1.QuotaSettingGetReq) (res *v1.QuotaSettingGetRes, err error) {
|
||||
return logic.AdminQuotaSettingGet(ctx)
|
||||
}
|
||||
|
||||
func (c *cAdminAuth) QuotaSettingSave(ctx context.Context, req *v1.QuotaSettingSaveReq) (res *v1.QuotaSettingSaveRes, err error) {
|
||||
return logic.AdminQuotaSettingSave(ctx, req.PeriodDays)
|
||||
}
|
||||
|
||||
func (c *cAdminAuth) PlanList(ctx context.Context, req *v1.PlanListReq) (res *v1.PlanListRes, err error) {
|
||||
return logic.AdminPlanList(ctx)
|
||||
}
|
||||
|
||||
func (c *cAdminAuth) PlanSave(ctx context.Context, req *v1.PlanSaveReq) (res *v1.PlanSaveRes, err error) {
|
||||
return logic.AdminPlanSave(ctx, req)
|
||||
}
|
||||
|
||||
func (c *cAdminAuth) UserQuotaPeriod(ctx context.Context, req *v1.UserQuotaPeriodReq) (res *v1.UserQuotaPeriodRes, err error) {
|
||||
return logic.AdminUserQuotaPeriod(ctx, req.UserId, req.PeriodDays)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user