video 封面

This commit is contained in:
2023-04-12 14:53:26 +08:00
parent fa1ebe7d0c
commit c28a3ac148

View File

@@ -32,6 +32,8 @@ func (m *MysqlConnection) Init() (err error) {
// 根据图片 id 获取图片的 content
func (m *MysqlConnection) GetImageContent(group string, id string) (content string, err error) {
switch group {
case "video":
err = m.Database.QueryRow("SELECT image FROM web_sort_video WHERE id=" + id).Scan(&content)
case "article":
err = m.Database.QueryRow("SELECT image FROM web_article WHERE id=" + id).Scan(&content)
case "article_attribute":