Merge branch 'dev-lzh-0905' into dev
This commit is contained in:
commit
1e6acd8c8e
@ -33,6 +33,7 @@ func BundleRouter(r *gin.RouterGroup) {
|
|||||||
{
|
{
|
||||||
bundleBalance.POST("list", bundle.GetBundleBalance)
|
bundleBalance.POST("list", bundle.GetBundleBalance)
|
||||||
bundleBalance.POST("used-record", bundle.GetUsedRecordList)
|
bundleBalance.POST("used-record", bundle.GetUsedRecordList)
|
||||||
|
bundleBalance.POST("activate", bundle.BundleActivate)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bundleClientRouteV2 := bundleRoute.Group("system/v2")
|
bundleClientRouteV2 := bundleRoute.Group("system/v2")
|
||||||
|
@ -249,3 +249,17 @@ func CastLogConfirm(ctx *gin.Context) {
|
|||||||
}
|
}
|
||||||
service.Success(ctx, res)
|
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