得到敏感词列表
This commit is contained in:
@@ -321,3 +321,21 @@ func (c *SkuController) SyncSku() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 同步商家SKU
|
||||
// @Description 同步商家SKU
|
||||
// @Param token header string true "认证token"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetSensitiveWordList [get]
|
||||
func (c *SkuController) GetSensitiveWordList() {
|
||||
c.callGetSensitiveWordList(func(params *tSkuGetSensitiveWordListParams) (retVal interface{}, errCode string, err error) {
|
||||
sensitiveWordList, err := dao.GetSensitiveWordList()
|
||||
var wordList []string
|
||||
for _, value := range sensitiveWordList {
|
||||
wordList = append(wordList, value.Word)
|
||||
}
|
||||
retVal = wordList
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1051,6 +1051,15 @@ func init() {
|
||||
Filters: nil,
|
||||
Params: nil})
|
||||
|
||||
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:SkuController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:SkuController"],
|
||||
beego.ControllerComments{
|
||||
Method: "GetSensitiveWordList",
|
||||
Router: `/GetSensitiveWordList`,
|
||||
AllowHTTPMethods: []string{"get"},
|
||||
MethodParams: param.Make(),
|
||||
Filters: nil,
|
||||
Params: nil})
|
||||
|
||||
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:SkuController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:SkuController"],
|
||||
beego.ControllerComments{
|
||||
Method: "GetSkuNames",
|
||||
|
||||
Reference in New Issue
Block a user