Skip to content

Commit

Permalink
0.3.3 (#196)
Browse files Browse the repository at this point in the history
0.3.3
  • Loading branch information
MXWXZ authored Sep 8, 2019
2 parents b8aed23 + 8fcb726 commit 9053d24
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions backend/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
1. `transaction` 模块被完全移除

### 新增
1. `POST "/buyInfo/:buyInfoID"` 修改状态
2. `POST "/sellInfo/:sellInfoID"` 修改状态
1. `PUT "/buyInfo/:buyInfoID"` 修改状态
2. `PUT "/sellInfo/:sellInfoID"` 修改状态

### BUG修复
1. 修复message被错误标记为已读的问题
Expand Down
4 changes: 2 additions & 2 deletions backend/api/buyinfo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func setupRouter() *gin.Engine {
router, rg := utils.CreateAPIGroup()
rg.GET("/buyInfo/:buyInfoID", getBuyInfo)
rg.POST("/buyInfo/:buyInfoID", updateBuyInfo)
rg.PUT("/buyInfo/:buyInfoID", updateBuyInfo)
rg.GET("/buyInfo", findBuyInfo)
rg.POST("/buyInfo", addBuyInfo)
return router
Expand Down Expand Up @@ -60,7 +60,7 @@ func getBuyInfo(c *gin.Context) {
}

/**
* @api {post} /buyInfo/:buyInfoID UpdateBuyInfo
* @api {put} /buyInfo/:buyInfoID UpdateBuyInfo
* @apiVersion 1.0.0
* @apiGroup BuyInfo
* @apiPermission self/admin
Expand Down
4 changes: 2 additions & 2 deletions backend/api/sellinfo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func setupRouter() *gin.Engine {
router, rg := utils.CreateAPIGroup()
rg.GET("/sellInfo/:sellInfoID", getSellInfo)
rg.POST("/sellInfo/:sellInfoID", updateSellInfo)
rg.PUT("/sellInfo/:sellInfoID", updateSellInfo)
rg.GET("/sellInfo", findSellInfo)
rg.POST("/sellInfo", addSellInfo)
return router
Expand Down Expand Up @@ -60,7 +60,7 @@ func getSellInfo(c *gin.Context) {
}

/**
* @api {post} /sellInfo/:sellInfoID UpdateSellInfo
* @api {put} /sellInfo/:sellInfoID UpdateSellInfo
* @apiVersion 1.0.0
* @apiGroup SellInfo
* @apiPermission self/admin
Expand Down
4 changes: 2 additions & 2 deletions backend/doc/api_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ define({ "api": [
}
},
{
"type": "post",
"type": "put",
"url": "/buyInfo/:buyInfoID",
"title": "UpdateBuyInfo",
"version": "1.0.0",
Expand Down Expand Up @@ -1088,7 +1088,7 @@ define({ "api": [
}
},
{
"type": "post",
"type": "put",
"url": "/sellInfo/:sellInfoID",
"title": "UpdateSellInfo",
"version": "1.0.0",
Expand Down
4 changes: 2 additions & 2 deletions backend/doc/api_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@
}
},
{
"type": "post",
"type": "put",
"url": "/buyInfo/:buyInfoID",
"title": "UpdateBuyInfo",
"version": "1.0.0",
Expand Down Expand Up @@ -1088,7 +1088,7 @@
}
},
{
"type": "post",
"type": "put",
"url": "/sellInfo/:sellInfoID",
"title": "UpdateSellInfo",
"version": "1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion backend/doc/api_project.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ define({
"apidoc": "0.3.0",
"generator": {
"name": "apidoc",
"time": "2019-09-08T18:38:23.473Z",
"time": "2019-09-08T18:52:41.653Z",
"url": "http://apidocjs.com",
"version": "0.17.7"
}
Expand Down
2 changes: 1 addition & 1 deletion backend/doc/api_project.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"apidoc": "0.3.0",
"generator": {
"name": "apidoc",
"time": "2019-09-08T18:38:23.473Z",
"time": "2019-09-08T18:52:41.653Z",
"url": "http://apidocjs.com",
"version": "0.17.7"
}
Expand Down

0 comments on commit 9053d24

Please sign in to comment.