This commit is contained in:
戴育兵 2025-10-16 10:26:34 +08:00
commit f17c039c1e
4 changed files with 1903 additions and 1431 deletions

File diff suppressed because it is too large Load Diff

View File

@ -486,6 +486,12 @@ func (this *UnfinishedInfo) Validate() error {
func (this *SoftDeleteUnfinishedInfoRequest) Validate() error {
return nil
}
func (this *BundleActivateReq) Validate() error {
return nil
}
func (this *BundleActivateResp) Validate() error {
return nil
}
func (this *TaskQueryRequest) Validate() error {
return nil
}
@ -555,9 +561,3 @@ func (this *ArtistBundleBalanceRequest) Validate() error {
func (this *ArtistBundleBalanceResponse) Validate() error {
return nil
}
func (this *BundleActivateReq) Validate() error {
return nil
}
func (this *BundleActivateResp) Validate() error {
return nil
}

View File

@ -33,6 +33,7 @@ func BundleRouter(r *gin.RouterGroup) {
{
bundleBalance.POST("list", bundle.GetBundleBalance)
bundleBalance.POST("used-record", bundle.GetUsedRecordList)
bundleBalance.POST("activate", bundle.BundleActivate)
}
}
bundleClientRouteV2 := bundleRoute.Group("system/v2")

View File

@ -249,3 +249,17 @@ func CastLogConfirm(ctx *gin.Context) {
}
service.Success(ctx, res)
}
func BundleActivate(ctx *gin.Context) {
var req bundle.BundleActivateReq
if err := ctx.ShouldBindJSON(&req); err != nil {
service.Error(ctx, err)
return
}
res, err := service.BundleProvider.BundleActivate(context.Background(), &req)
if err != nil {
service.Error(ctx, err)
return
}
service.Success(ctx, res)
}