fix(admin): 管理后台 - 修复公告编辑与模型价格配置 (#355)
This commit is contained in:
1 parent
2b7375f631
commit
cc4aa736ff
7 files changed
+309
-128
No files matched your search
@@ -735,7 +735,7 @@ func (r *Repository) AdminSystemChannels(keyword string, status string, limit in
|
||||
|
||||
func (r *Repository) AdminSystemChannelReferences() ([]model.ModelChannel, error) {
|
||||
var channels []model.ModelChannel
|
||||
err := r.db.Select("id", "name").Where("scope = ?", model.ChannelScopeSystem).Order("created_at asc").Find(&channels).Error
|
||||
err := r.db.Select("id", "name", "enabled").Where("scope = ?", model.ChannelScopeSystem).Order("created_at asc").Find(&channels).Error
|
||||
return channels, err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user