26 lines
716 B
Go
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)
|
|
}
|