This commit is contained in:
Liang Ding 2022-12-23 16:19:36 +08:00
parent 2b451eddad
commit 7ef54b0f8f
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 37 additions and 1 deletions

View file

@ -153,6 +153,24 @@ func renameRiffDeck(c *gin.Context) {
}
}
func removeRiffDeck(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
arg, ok := util.JsonArg(c, ret)
if !ok {
return
}
deckID := arg["deckID"].(string)
err := model.RemoveDeck(deckID)
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
return
}
}
func createRiffDeck(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)