star
This commit is contained in:
@@ -27,3 +27,13 @@ func (list *TagList) Scan(value interface{}) error {
|
||||
func (list TagList) Value() (driver.Value, error) {
|
||||
return json.Marshal(list)
|
||||
}
|
||||
|
||||
type StarList []int
|
||||
|
||||
func (list *StarList) Scan(value interface{}) error {
|
||||
return json.Unmarshal(value.([]byte), list)
|
||||
}
|
||||
|
||||
func (list StarList) Value() (driver.Value, error) {
|
||||
return json.Marshal(list)
|
||||
}
|
||||
|
Reference in New Issue
Block a user