Commit 3cf5daba authored by hujiebin's avatar hujiebin

swagger

parent ae31a3f6
......@@ -2,11 +2,10 @@ package user_cv
import (
"git.hilo.cn/hilo-common/resource/mysql"
"hilo-user/_const/enum/res_e"
)
type UserBag struct {
ResType res_e.ResUserBag `json:"resType"` // 道具类型 1:礼物道具
ResType mysql.Type `json:"resType"` // 道具类型 1:礼物道具
ResId mysql.ID `json:"resId"` // 道具资源id
Name string `json:"name"` // 资源名称
DiamondNum mysql.Num `json:"diamondNum"` // 钻石数量
......
......@@ -17,7 +17,7 @@ import (
// @Tags 用户背包
// @Summary 获取用户的铭牌
// @Param column path int true "分栏:1 礼物"
// @Param resType path int true "分栏:1 礼物"
// @Success 200 {object} []user_cv.UserBag
// @Router /v1/user/bag/{resType} [get]
func UserBag(c *gin.Context) (*mycontext.MyContext, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment