fix
zhangqian
2024-03-29 39086a8323ecfc2af7ca46d1415ea7e66c310c63
fix
5个文件已修改
23 ■■■■■ 已修改文件
api/v1/test/product.go 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/test/request/product.go 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/v1/test/product.go
@@ -159,6 +159,7 @@
// @accept application/json
// @Produce application/json
// @Param data query testReq.ProductSearch true "分页获取Product列表"
// @Param Authorization    header string true "token"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /p/getProductList [get]
func (pApi *ProductApi) GetProductList(c *gin.Context) {
docs/docs.go
@@ -1389,6 +1389,13 @@
                        "type": "string",
                        "name": "unit",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
docs/swagger.json
@@ -1380,6 +1380,13 @@
                        "type": "string",
                        "name": "unit",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
docs/swagger.yaml
@@ -1981,6 +1981,11 @@
      - in: query
        name: unit
        type: string
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      produces:
      - application/json
      responses:
model/test/request/product.go
@@ -6,8 +6,7 @@
type ProductSearch struct {
    Product
    request.PageInfo `json:"request.PageInfo"`
    Keyword          string `json:"keyword,omitempty"`
    request.PageInfo
}
type ProductCreate struct {