diff --git a/rpc/user.go b/rpc/user.go index cbc77b8da4cc6eafd722f895d59aedfbb8f6e972..f3e0b7a2c1595eb8703d763f5000a4483e4aadac 100644 --- a/rpc/user.go +++ b/rpc/user.go @@ -111,14 +111,14 @@ type CvUserBag struct { RemainDays int `json:"remainDays"` // 有效天数 } -// 批量用户背包 -func GetUserBag(model *domain.Model, bagId mysql.ID) (CvUserBag, error) { +// 根据bagId获取用户背包 +func GetUserBagId(model *domain.Model, bagId mysql.ID) (CvUserBag, error) { type Response struct { Code int `json:"code"` Message string `json:"message"` 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{ "bagId": {fmt.Sprintf("%d", bagId)}, })