Commit 03f2653e authored by hujiebin's avatar hujiebin

根据bagId获取用户背包

parent c0b6f322
...@@ -111,14 +111,14 @@ type CvUserBag struct { ...@@ -111,14 +111,14 @@ type CvUserBag struct {
RemainDays int `json:"remainDays"` // 有效天数 RemainDays int `json:"remainDays"` // 有效天数
} }
// 批量用户背包 // 根据bagId获取用户背包
func GetUserBag(model *domain.Model, bagId mysql.ID) (CvUserBag, error) { func GetUserBagId(model *domain.Model, bagId mysql.ID) (CvUserBag, error) {
type Response struct { type Response struct {
Code int `json:"code"` Code int `json:"code"`
Message string `json:"message"` Message string `json:"message"`
Data CvUserBag `json:"data"` Data CvUserBag `json:"data"`
} }
_url := fmt.Sprintf("%v://%v/inner/user/bag", defaultUserServerScheme, getUserHost()) _url := fmt.Sprintf("%v://%v/inner/user/bag/id", defaultUserServerScheme, getUserHost())
resp, err := HttpGet(model, _url, nil, map[string][]string{ resp, err := HttpGet(model, _url, nil, map[string][]string{
"bagId": {fmt.Sprintf("%d", bagId)}, "bagId": {fmt.Sprintf("%d", bagId)},
}) })
......
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