tidy apis

This commit is contained in:
RockYang
2024-07-12 14:39:14 +08:00
parent bddd611cc1
commit eecce10018
32 changed files with 203 additions and 1574 deletions

View File

@@ -62,7 +62,7 @@ func (h *UploadHandler) Upload(c *gin.Context) {
func (h *UploadHandler) List(c *gin.Context) {
var data struct {
Urls []string `json:"urls"`
Urls []string `json:"urls,omitempty"`
}
if err := c.ShouldBindJSON(&data); err != nil {
resp.ERROR(c, types.InvalidArgs)