init: web_hgcg_server 初始化提交

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 16:44:55 +08:00
co-authored by Claude Opus 4.7
commit 189556e702
627 changed files with 126228 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
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)
}