feat:完善项目信息
This commit is contained in:
@ -4,6 +4,7 @@ import (
|
||||
config2 "SciencesServer/app/basic/config"
|
||||
"SciencesServer/config"
|
||||
"SciencesServer/utils"
|
||||
"encoding/json"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
@ -55,6 +56,11 @@ func (m *Images) AnalysisSlice(domain string) []string {
|
||||
return images
|
||||
}
|
||||
|
||||
func (m *Images) SetImagesAttribute(value []string) {
|
||||
_bytes, _ := json.Marshal(value)
|
||||
m.Images = string(_bytes)
|
||||
}
|
||||
|
||||
type Local struct {
|
||||
Local string `gorm:"column:local;type:varchar(8);default:'';comment:数据位置来源" json:"-"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user