Files
rootandClaude Opus 4.7 79ac89b458 Initial commit
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-11-07 10:47:18 +08:00

26 lines
716 B
Go

package rechargepackageapi
import (
"videoweb/app/service/rechargepackageser"
"videoweb/pub/common"
"videoweb/pub/common/srvdef"
"github.com/gin-gonic/gin"
)
// List 查询购买套餐列表
// @Tags 金币与会员
// @Summary 查询购买套餐列表 -- by 王鸣
// @Description 返回会员畅享和金币充值两个列表,并附带各套餐可用支付方式
// @Produce json
// @Success 200 {object} proto.RechargePackageListResp "成功"
// @Router /api/app/recharge/package/list [GET]
func List(ctx *gin.Context) {
resp, err := rechargepackageser.GetRechargePackageList(ctx)
if err != nil {
common.ServerJSON(ctx, err.Code, err.Tips)
return
}
common.ServerJSON(ctx, srvdef.Success, resp)
}