github.com/lino-network/lino@v0.6.11/x/post/model/ir.go (about) 1 package model 2 3 import ( 4 "github.com/lino-network/lino/types" 5 ) 6 7 // PostIR - is the IR of Post. 8 type PostIR struct { 9 PostID string `json:"post_id"` 10 Title string `json:"title"` 11 Content string `json:"content"` 12 Author types.AccountKey `json:"author"` 13 CreatedBy types.AccountKey `json:"created_by"` 14 CreatedAt int64 `json:"created_at"` 15 UpdatedAt int64 `json:"updated_at"` 16 IsDeleted bool `json:"is_deleted"` 17 } 18 19 // PostTablesIR - is the Post State. 20 type PostTablesIR struct { 21 Version int `json:"version"` 22 Posts []PostIR `json:"posts"` 23 ConsumptionWindow types.MiniDollar `json:"consumption_window"` 24 }