Commit a1dc2ae0 authored by shajiaming's avatar shajiaming

推荐币种增加筛选条件

parent 2f53a119
......@@ -28,8 +28,20 @@ func GetRecommendCoins(c *gin.Context) {
}
}
var wallet_type int
if arg := c.Query("type"); arg != "" {
wallet_type = com.StrTo(c.Query("type")).MustInt()
}
var recommend int
if arg := c.Query("recommend"); arg != "" {
recommend = com.StrTo(c.Query("recommend")).MustInt()
}
recommendCoinService := recommend_coin_service.RecommendCoin{
PlatformId: platform_id,
Type: wallet_type,
Recommend: recommend,
PageNum: util.GetPage(c),
PageSize: util.GetLimit(c),
}
......
......@@ -86,5 +86,9 @@ func (c *RecommendCoin) getMaps() (map[string]interface{}) {
maps["type"] = c.Type
}
if c.Recommend != 0 {
maps["recommend"] = c.Recommend
}
return maps
}
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