fix: 系统登录日志删除接口属性名称不匹配
This commit is contained in:
@@ -60,17 +60,17 @@ func (s *SysLogLoginController) List(c *gin.Context) {
|
|||||||
|
|
||||||
// 系统登录日志删除
|
// 系统登录日志删除
|
||||||
//
|
//
|
||||||
// DELETE /:infoIds
|
// DELETE /:loginIds
|
||||||
func (s *SysLogLoginController) Remove(c *gin.Context) {
|
func (s *SysLogLoginController) Remove(c *gin.Context) {
|
||||||
language := ctx.AcceptLanguage(c)
|
language := ctx.AcceptLanguage(c)
|
||||||
infoIds := c.Param("infoIds")
|
loginIds := c.Param("loginIds")
|
||||||
if infoIds == "" {
|
if loginIds == "" {
|
||||||
c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400")))
|
c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400")))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 处理字符转id数组后去重
|
// 处理字符转id数组后去重
|
||||||
ids := strings.Split(infoIds, ",")
|
ids := strings.Split(loginIds, ",")
|
||||||
uniqueIDs := parse.RemoveDuplicates(ids)
|
uniqueIDs := parse.RemoveDuplicates(ids)
|
||||||
if len(uniqueIDs) <= 0 {
|
if len(uniqueIDs) <= 0 {
|
||||||
c.JSON(200, result.Err(nil))
|
c.JSON(200, result.Err(nil))
|
||||||
|
|||||||
Reference in New Issue
Block a user