go-common/app/interface/main/dm2/model/dm_special_location.go
2019-04-22 18:49:16 +08:00

24 lines
351 B
Go

package model
import (
"strings"
)
// DmSpecial special dm bfs location
type DmSpecial struct {
ID int64
Type int32
Oid int64
Locations string
}
// Split .
func (d *DmSpecial) Split() []string {
return strings.Split(d.Locations, ",")
}
// Join .
func (d *DmSpecial) Join(s []string) {
d.Locations = strings.Join(s, ",")
}