github.com/easysoft/zendata@v0.0.0-20240513203326-705bd5a7fd67/internal/server/model/zd-refer.go (about) 1 package model 2 3 import ( 4 consts "github.com/easysoft/zendata/internal/pkg/const" 5 ) 6 7 type ZdRefer struct { 8 BaseModel 9 10 OwnerType string `json:"ownerType"` // field or instances 11 OwnerID uint `json:"ownerID"` 12 Type string `json:"type"` 13 14 Value string `json:"value"` 15 File string `json:"file"` 16 Sheet string `json:"sheet"` 17 18 ColName string `json:"colName"` 19 ColIndex int `json:"colIndex"` 20 Condition string `json:"condition"` 21 Count int `json:"count"` 22 CountTag string `json:"countTag"` 23 Step int `json:"step"` 24 Rand bool `json:"rand"` 25 HasTitle bool `json:"hasTitle"` 26 } 27 28 func (*ZdRefer) TableName() string { 29 return consts.TablePrefix + "refer" 30 }