修改customer文件位restful模式 提供示例

This commit is contained in:
pixel
2020-04-10 13:47:52 +08:00
parent 849f0dcf43
commit da8a1c20b6
9 changed files with 53 additions and 45 deletions

View File

@@ -2,11 +2,11 @@ package request
// Paging common input parameter structure
type PageInfo struct {
Page int `json:"page"`
PageSize int `json:"pageSize"`
Page int `json:"page" form:"page"`
PageSize int `json:"pageSize" form:"pageSize"`
}
// Find by id structure
type GetById struct {
Id float64 `json:"id"`
Id float64 `json:"id" form:"id"`
}