🎨 新增封禁用户返回,新增批量上传机器人功能
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user