From 03f2653e42cec3640399a2d904de9f8b3520e132 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Thu, 23 Feb 2023 16:53:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AEbagId=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=83=8C=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rpc/user.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpc/user.go b/rpc/user.go index cbc77b8..f3e0b7a 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)}, }) -- 2.22.0