Feat: add and delete file tags

This commit is contained in:
HFO4
2020-02-12 11:38:04 +08:00
parent 127d0236f9
commit 15f4b1819b
10 changed files with 246 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ func SiteConfig(c *gin.Context) {
"share_view_method",
)
// 如果已登录,则同时返回用户信息
// 如果已登录,则同时返回用户信息和标签
user, _ := c.Get("user")
if user, ok := user.(*model.User); ok {
c.JSON(200, serializer.BuildSiteConfig(siteConfig, user))