lib

package
v0.0.0-...-966f3c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 0 Imported by: 4

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查询到名下所有发起的销售

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL