Compare commits

...

2 Commits

Author SHA1 Message Date
lzh
1e6acd8c8e Merge branch 'dev-lzh-0905' into dev 2025-10-16 09:22:53 +08:00
lzh
a989dae45a 添加激活接口 2025-10-16 09:18:17 +08:00
2 changed files with 15 additions and 0 deletions

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)
}