🎨 新增封禁用户返回,新增批量上传机器人功能

This commit is contained in:
2025-09-17 18:32:18 +08:00
parent bda654ec5e
commit 81e1661380
6 changed files with 75 additions and 0 deletions

View File

@@ -14,3 +14,7 @@ type BotSearch struct {
type FindKey struct {
KeyWord string `json:"keyWord" form:"keyWord"`
}
type BulkBot struct {
Files []string `json:"files" form:"files" binding:"required"`
}

View File

@@ -61,3 +61,12 @@ func NoAuth(message string, c *gin.Context) {
func FailWithDetailed(data interface{}, message string, c *gin.Context) {
Result(ERROR, data, message, c)
}
// Banned 被封禁
func Banned(message string, c *gin.Context) {
c.JSON(403, Response{
4,
nil,
message,
})
}