| 12345678910111213141516171819202122232425262728293031 |
- package viewmodels
- import (
- "encoding/json"
- "time"
- )
- type BizObjectDataInfo struct {
- BizId int64 `json:"bizId" xorm:"'biz_id' bigint pk comment('主键ID') "`
- BizTitle string `json:"bizTitle" xorm:"'biz_title' varchar(127) comment('Biz Title') "`
- ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('主键ID') "`
- ObjectType int64 `json:"objectType" xorm:"'object_type' bigint comment('Type') "`
- ObjectTitle string `json:"objectTitle" xorm:"'object_title' varchar(127) comment('模型名称') "`
- ObjectCode string `json:"objectCode" xorm:"'object_code' varchar(127) comment('模型名称') "`
- Comment string `json:"comment" xorm:"'comment' varchar(255) comment('描述') "`
- IsFixed int64 `json:"isFixed" xorm:"'is_fixed' int comment('是否可修改') "`
- DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
- Attrs []BizObjectAttrInfo `json:"attrs"`
- }
- func (t *BizObjectDataInfo) TableName() string {
- return "biz_object"
- }
- func (g *BizObjectDataInfo) MarshalBinary() (data []byte, err error){
- return json.Marshal(g)
- }
- func (g *BizObjectDataInfo) UnmarshalBinary(data []byte) (err error){
- return json.Unmarshal(data, g)
- }
|