biz_object_info.go 1.1 KB

12345678910111213141516171819202122232425
  1. package viewmodel
  2. import "encoding/json"
  3. type BizObjectInfo struct {
  4. BizId int64 `json:"bizId" xorm:"'biz_id' bigint pk comment('Biz ID') "`
  5. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('Object ID') "`
  6. ObjectType int64 `json:"objectType" xorm:"'object_type' bigint comment('Object Type') "`
  7. ObjectTitle string `json:"objectTitle" xorm:"'object_title' varchar(127) comment('Object Title') "`
  8. ObjectCode string `json:"objectCode" xorm:"'object_code' varchar(127) comment('Object Code') "`
  9. Comment string `json:"comment" xorm:"'comment' varchar(255) comment('Comment') "`
  10. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' int comment('Is Fixed') "`
  11. }
  12. func (t *BizObjectInfo) TableName() string {
  13. return "biz_object"
  14. }
  15. func (t *BizObjectInfo) MarshalBinary() (data []byte, err error){
  16. return json.Marshal(t)
  17. }
  18. func (t *BizObjectInfo) UnmarshalBinary(data []byte) (err error){
  19. return json.Unmarshal(data, t)
  20. }