Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c889a01a15 |
@ -130,3 +130,11 @@ func (c *Client) GetLoginBg(req *GetLoginBgReq) (resp *GetLoginBgResp, err error
|
|||||||
err = c.DoAction(req, resp)
|
err = c.DoAction(req, resp)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetLabelListByCate
|
||||||
|
// 通过分类获取标签列表
|
||||||
|
func (c *Client) GetLabelListByCate(req *GetLabelListByCateRep) (response *GetLabelListByCateResp, err error) {
|
||||||
|
response = CreateGetLabelListByCateResp()
|
||||||
|
err = c.DoAction(req, response)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|||||||
47
services/game/label.go
Normal file
47
services/game/label.go
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
package game
|
||||||
|
|
||||||
|
import (
|
||||||
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
|
||||||
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses"
|
||||||
|
)
|
||||||
|
|
||||||
|
type GetLabelListByCateRep struct {
|
||||||
|
*requests.RpcRequest
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetLabelListByCateResp struct {
|
||||||
|
*responses.BaseResponse
|
||||||
|
Code int `json:"code"`
|
||||||
|
Msg string `json:"msg"`
|
||||||
|
Data struct {
|
||||||
|
List []Label `json:"list"`
|
||||||
|
} `json:"data"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type Label struct {
|
||||||
|
Id int `json:"id"`
|
||||||
|
CateId int `json:"cate_id"`
|
||||||
|
LabelName string `json:"label_name"`
|
||||||
|
Status int `json:"status"`
|
||||||
|
RelateUserNum int `json:"relate_user_num"`
|
||||||
|
CreateBy string `json:"create_by"`
|
||||||
|
UpdateBy string `json:"update_by"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func CreateGetLabelListByCateRep(cateIds string) *GetLabelListByCateRep {
|
||||||
|
req := &GetLabelListByCateRep{
|
||||||
|
RpcRequest: &requests.RpcRequest{},
|
||||||
|
}
|
||||||
|
req.InitWithApiInfo(HOST, VERSION, "/api/label/getLabelListByCate")
|
||||||
|
req.FormParams = map[string]string{
|
||||||
|
"cate_ids": cateIds,
|
||||||
|
}
|
||||||
|
req.Method = requests.POST
|
||||||
|
return req
|
||||||
|
}
|
||||||
|
|
||||||
|
func CreateGetLabelListByCateResp() *GetLabelListByCateResp {
|
||||||
|
return &GetLabelListByCateResp{
|
||||||
|
BaseResponse: &responses.BaseResponse{},
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user