| 12345678910111213141516171819202122232425 |
- package viewmodels
- import "encoding/json"
- type BizObjectInfo struct {
- BizId int64 `json:"bizId" xorm:"'biz_id' bigint pk comment('Biz ID') "`
- ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('Object ID') "`
- ObjectType int64 `json:"objectType" xorm:"'object_type' bigint comment('Object Type') "`
- ObjectTitle string `json:"objectTitle" xorm:"'object_title' varchar(127) comment('Object Title') "`
- ObjectCode string `json:"objectCode" xorm:"'object_code' varchar(127) comment('Object Code') "`
- Comment string `json:"comment" xorm:"'comment' varchar(255) comment('Comment') "`
- IsFixed int64 `json:"isFixed" xorm:"'is_fixed' int comment('Is Fixed') "`
- }
- func (t *BizObjectInfo) TableName() string {
- return "biz_object"
- }
- func (t *BizObjectInfo) MarshalBinary() (data []byte, err error){
- return json.Marshal(t)
- }
- func (t *BizObjectInfo) UnmarshalBinary(data []byte) (err error){
- return json.Unmarshal(data, t)
- }
|