Allow other words appear in tag

This commit is contained in:
2024-07-07 12:35:46 +08:00
parent 4fa351b923
commit fe339e722f
2 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@ package models
type Tag struct {
BaseModel
Alias string `json:"alias" gorm:"uniqueIndex" validate:"lowercase,alphanum"`
Alias string `json:"alias" gorm:"uniqueIndex" validate:"lowercase"`
Name string `json:"name"`
Description string `json:"description"`
Posts []Post `json:"posts" gorm:"many2many:post_tags"`