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/3 11:24 下午
- @Description: 测试api
*
- @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 ¶
- func CreateDonating(c *gin.Context)
- func CreateRealEstate(c *gin.Context)
- func CreateSelling(c *gin.Context)
- func CreateSellingByBuy(c *gin.Context)
- func Hello(c *gin.Context)
- func QueryAccountList(c *gin.Context)
- func QueryDonatingList(c *gin.Context)
- func QueryDonatingListByGrantee(c *gin.Context)
- func QueryRealEstateList(c *gin.Context)
- func QuerySellingList(c *gin.Context)
- func QuerySellingListByBuyer(c *gin.Context)
- func UpdateDonating(c *gin.Context)
- func UpdateSelling(c *gin.Context)
- type AccountIdBody
- type AccountRequestBody
- type DonatingListQueryByGranteeRequestBody
- type DonatingListQueryRequestBody
- type DonatingRequestBody
- type RealEstateQueryRequestBody
- type RealEstateRequestBody
- type SellingByBuyRequestBody
- type SellingListQueryByBuyRequestBody
- type SellingListQueryRequestBody
- type SellingRequestBody
- type UpdateDonatingRequestBody
- type UpdateSellingRequestBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDonating ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@Summary 测试输出Hello @Produce json @Success 200 {object} app.Response @Failure 500 {object} app.Response @Router /api/v1/hello [get]
func QueryAccountList ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 RealEstateQueryRequestBody ¶
type RealEstateQueryRequestBody struct {
Proprietor string `json:"proprietor"` //所有者(业主)(业主AccountId)
}
type RealEstateRequestBody ¶
type SellingByBuyRequestBody ¶
type SellingListQueryByBuyRequestBody ¶
type SellingListQueryByBuyRequestBody struct {
Buyer string `json:"buyer"` //买家(买家AccountId)
}
type SellingListQueryRequestBody ¶
type SellingListQueryRequestBody struct {
Seller string `json:"seller"` //发起销售人、卖家(卖家AccountId)
}