init: import web_huangguo2 server project
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package rechargepackageapi
|
||||
|
||||
import (
|
||||
"videoweb/app/service/rechargepackageser"
|
||||
"videoweb/pub/common"
|
||||
"videoweb/pub/common/enum/consts"
|
||||
"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) {
|
||||
sysType := ctx.GetString(consts.CtxSysType)
|
||||
if sysType == "" {
|
||||
sysType = "android"
|
||||
}
|
||||
resp, err := rechargepackageser.GetRechargePackageList(ctx, sysType)
|
||||
if err != nil {
|
||||
common.ServerJSON(ctx, err.Code, err.Tips)
|
||||
return
|
||||
}
|
||||
common.ServerJSON(ctx, srvdef.Success, resp)
|
||||
}
|
||||
Reference in New Issue
Block a user