Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DonatingStatusConstant = func() map[string]string { return map[string]string{ "donatingStart": "捐赠中", "cancelled": "已取消", "done": "完成", } }
DonatingStatusConstant 捐赠状态
View Source
var SellingStatusConstant = func() map[string]string { return map[string]string{ "saleStart": "销售中", "cancelled": "已取消", "expired": "已过期", "delivery": "交付中", "done": "完成", } }
SellingStatusConstant 销售状态
Functions ¶
This section is empty.
Types ¶
type Donating ¶
type Donating struct { ObjectOfDonating string `json:"objectOfDonating"` //捐赠对象(正在捐赠的房地产RealEstateID) Donor string `json:"donor"` //捐赠人(捐赠人AccountId) Grantee string `json:"grantee"` //受赠人(受赠人AccountId) CreateTime string `json:"createTime"` //创建时间 DonatingStatus string `json:"donatingStatus"` //捐赠状态 }
Donating 捐赠要约 需要确定ObjectOfDonating是否属于Donor 需要指定受赠人Grantee,并等待受赠人同意接收
type Selling ¶
type Selling struct { ObjectOfSale string `json:"objectOfSale"` //销售对象(正在出售的房地产RealEstateID) Seller string `json:"seller"` //发起销售人、卖家(卖家AccountId) Buyer string `json:"buyer"` //参与销售人、买家(买家AccountId) Price float64 `json:"price"` //价格 CreateTime string `json:"createTime"` //创建时间 SalePeriod int `json:"salePeriod"` //智能合约的有效期(单位为天) SellingStatus string `json:"sellingStatus"` //销售状态 }
Selling 销售要约 需要确定ObjectOfSale是否属于Seller 买家初始为空 Seller和ObjectOfSale一起作为复合键,保证可以通过seller查询到名下所有发起的销售
Click to show internal directories.
Click to hide internal directories.