verify tpl tags modify

This commit is contained in:
Ulric Qin 2021-11-30 18:16:09 +08:00
parent f96a36aa43
commit 3090e13be7
1 changed files with 2 additions and 0 deletions

View File

@ -173,6 +173,7 @@ func (f *tplTagsForm) Verify() {
func taskTplBindTags(c *gin.Context) {
var f tplTagsForm
ginx.BindJSON(c, &f)
f.Verify()
username := c.MustGet("username").(string)
@ -193,6 +194,7 @@ func taskTplBindTags(c *gin.Context) {
func taskTplUnbindTags(c *gin.Context) {
var f tplTagsForm
ginx.BindJSON(c, &f)
f.Verify()
username := c.MustGet("username").(string)