v1

package
v0.0.0-...-330c009 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

*

  • @Author: 夜央 Oh oh oh oh oh oh (https://github.com/togettoyou)
  • @Email: zoujh99@qq.com
  • @Date: 2020/3/5 12:55 上午
  • @Description: 账户信息相关接口

*

  • @Author: 夜央 Oh oh oh oh oh oh (https://github.com/togettoyou)
  • @Email: zoujh99@qq.com
  • @Date: 2020/3/19 1:54 上午
  • @Description: 捐赠相关接口

*

*

  • @Author: 夜央 Oh oh oh oh oh oh (https://github.com/togettoyou)
  • @Email: zoujh99@qq.com
  • @Date: 2020/3/10 4:43 下午
  • @Description: 房地产信息相关接口

*

  • @Author: 夜央 Oh oh oh oh oh oh (https://github.com/togettoyou)
  • @Email: zoujh99@qq.com
  • @Date: 2020/3/12 12:09 下午
  • @Description: 销售相关接口

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDonating

func CreateDonating(c *gin.Context)

@Summary 发起捐赠 @Param donating body DonatingRequestBody true "donating" @Produce json @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/createDonating [post]

func CreateRealEstate

func CreateRealEstate(c *gin.Context)

@Summary 新建房地产(管理员) @Param realEstate body RealEstateRequestBody true "realEstate" @Produce json @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/createRealEstate [post]

func CreateSelling

func CreateSelling(c *gin.Context)

@Summary 发起销售 @Param selling body SellingRequestBody true "selling" @Produce json @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/createSelling [post]

func CreateSellingByBuy

func CreateSellingByBuy(c *gin.Context)

@Summary 买家购买 @Param sellingByBuy body SellingByBuyRequestBody true "sellingByBuy" @Produce json @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/createSellingByBuy [post]

func Hello

func Hello(c *gin.Context)

@Summary 测试输出Hello @Produce json @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/hello [get]

func QueryAccountList

func QueryAccountList(c *gin.Context)

@Summary 获取账户信息 @Param account body AccountRequestBody true "account" @Produce json @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/queryAccountList [post]

func QueryDonatingList

func QueryDonatingList(c *gin.Context)

@Summary 查询捐赠列表(可查询所有,也可根据发起捐赠人查询) @Param donatingListQuery body DonatingListQueryRequestBody true "donatingListQuery" @Produce json @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/queryDonatingList [post]

func QueryDonatingListByGrantee

func QueryDonatingListByGrantee(c *gin.Context)

@Summary 根据受赠人(受赠人AccountId)查询捐赠(受赠的)(供受赠人查询) @Param donatingListQueryByGrantee body DonatingListQueryByGranteeRequestBody true "donatingListQueryByGrantee" @Produce json @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/queryDonatingListByGrantee [post]

func QueryRealEstateList

func QueryRealEstateList(c *gin.Context)

@Summary 获取房地产信息(空json{}可以查询所有,指定proprietor可以查询指定业主名下房产) @Param realEstateQuery body RealEstateQueryRequestBody true "realEstateQuery" @Produce json @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/queryRealEstateList [post]

func QuerySellingList

func QuerySellingList(c *gin.Context)

@Summary 查询销售(可查询所有,也可根据发起销售人查询)(发起的) @Param sellingListQuery body SellingListQueryRequestBody true "sellingListQuery" @Produce json @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/querySellingList [post]

func QuerySellingListByBuyer

func QuerySellingListByBuyer(c *gin.Context)

@Summary 根据参与销售人、买家(买家AccountId)查询销售(参与的) @Param sellingListQueryByBuy body SellingListQueryByBuyRequestBody true "sellingListQueryByBuy" @Produce json @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/querySellingListByBuyer [post]

func UpdateDonating

func UpdateDonating(c *gin.Context)

@Summary 更新捐赠状态(确认受赠、取消) @Param updateDonating body UpdateDonatingRequestBody true "updateDonating" @Produce json @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/updateDonating [post]

func UpdateSelling

func UpdateSelling(c *gin.Context)

@Summary 更新销售状态(买家确认、买卖家取消)Status取值为 完成"done"、取消"cancelled" 当处于销售中状态,卖家要取消时,buyer为""空 @Param updateSelling body UpdateSellingRequestBody true "updateSelling" @Produce json @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/updateSelling [post]

Types

type AccountIdBody

type AccountIdBody struct {
	AccountId string `json:"accountId"`
}

type AccountRequestBody

type AccountRequestBody struct {
	Args []AccountIdBody `json:"args"`
}

type DonatingListQueryByGranteeRequestBody

type DonatingListQueryByGranteeRequestBody struct {
	Grantee string `json:"grantee"`
}

type DonatingListQueryRequestBody

type DonatingListQueryRequestBody struct {
	Donor string `json:"donor"`
}

type DonatingRequestBody

type DonatingRequestBody struct {
	ObjectOfDonating string `json:"objectOfDonating"` //捐赠对象
	Donor            string `json:"donor"`            //捐赠人
	Grantee          string `json:"grantee"`          //受赠人
}

type RealEstateQueryRequestBody

type RealEstateQueryRequestBody struct {
	Proprietor string `json:"proprietor"` //所有者(业主)(业主AccountId)
}

type RealEstateRequestBody

type RealEstateRequestBody struct {
	AccountId   string  `json:"accountId"`   //操作人ID
	Proprietor  string  `json:"proprietor"`  //所有者(业主)(业主AccountId)
	TotalArea   float64 `json:"totalArea"`   //总面积
	LivingSpace float64 `json:"livingSpace"` //生活空间
}

type SellingByBuyRequestBody

type SellingByBuyRequestBody struct {
	ObjectOfSale string `json:"objectOfSale"` //销售对象(正在出售的房地产RealEstateID)
	Seller       string `json:"seller"`       //发起销售人、卖家(卖家AccountId)
	Buyer        string `json:"buyer"`        //买家(买家AccountId)
}

type SellingListQueryByBuyRequestBody

type SellingListQueryByBuyRequestBody struct {
	Buyer string `json:"buyer"` //买家(买家AccountId)
}

type SellingListQueryRequestBody

type SellingListQueryRequestBody struct {
	Seller string `json:"seller"` //发起销售人、卖家(卖家AccountId)
}

type SellingRequestBody

type SellingRequestBody struct {
	ObjectOfSale string  `json:"objectOfSale"` //销售对象(正在出售的房地产RealEstateID)
	Seller       string  `json:"seller"`       //发起销售人、卖家(卖家AccountId)
	Price        float64 `json:"price"`        //价格
	SalePeriod   int     `json:"salePeriod"`   //智能合约的有效期(单位为天)
}

type UpdateDonatingRequestBody

type UpdateDonatingRequestBody struct {
	ObjectOfDonating string `json:"objectOfDonating"` //捐赠对象
	Donor            string `json:"donor"`            //捐赠人
	Grantee          string `json:"grantee"`          //受赠人
	Status           string `json:"status"`           //需要更改的状态
}

type UpdateSellingRequestBody

type UpdateSellingRequestBody struct {
	ObjectOfSale string `json:"objectOfSale"` //销售对象(正在出售的房地产RealEstateID)
	Seller       string `json:"seller"`       //发起销售人、卖家(卖家AccountId)
	Buyer        string `json:"buyer"`        //买家(买家AccountId)
	Status       string `json:"status"`       //需要更改的状态
}

Jump to

Keyboard shortcuts

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