Merge branch 'dev' of http://gitea.tools.fontree.cn:3000/fiee/fonchain-fiee into dev
This commit is contained in:
commit
f17c039c1e
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
}
|
||||
|
@ -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")
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user