zhangqian
2024-04-07 2234e8fa97e85e1e69a6f970416602f283e09df6
docs/docs.go
@@ -16,6 +16,153 @@
    "host": "{{.Host}}",
    "basePath": "{{.BasePath}}",
    "paths": {
        "/api-jl/v1/fineness/check": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "纤度检验"
                ],
                "summary": "纤度检验列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/models.FinenessRegister"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            },
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "纤度检验"
                ],
                "summary": "纤度检验修改",
                "parameters": [
                    {
                        "description": "字典信息",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddFinenessRegister"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-jl/v1/fineness/check/{id}": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "纤度检验"
                ],
                "summary": "纤度检验详情",
                "parameters": [
                    {
                        "type": "string",
                        "description": "字典信息",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/models.FinenessRegister"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            },
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "纤度检验"
                ],
                "summary": "纤度检验删除",
                "parameters": [
                    {
                        "type": "string",
                        "description": "字典信息",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-jl/v1/fineness/register": {
            "get": {
                "produces": [
@@ -26,6 +173,11 @@
                ],
                "summary": "纤度登记列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
@@ -80,6 +232,13 @@
                        "schema": {
                            "$ref": "#/definitions/request.AddFinenessRegister"
                        }
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
@@ -423,6 +582,40 @@
                }
            }
        },
        "/api-jl/v1/system/getRankStandard": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "系统设置/生丝定级标准"
                ],
                "summary": "获取生丝定级标准",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.ResponseList"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/response.RankStandard"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api-jl/v1/system/getWorkshopManageList": {
            "get": {
                "produces": [
@@ -506,6 +699,36 @@
                }
            }
        },
        "/api-jl/v1/system/saveRankStandard": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "系统设置/生丝定级标准"
                ],
                "summary": "保存生丝定级标准",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.SaveRankStandard"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-jl/v1/system/saveWorkshopManage": {
            "post": {
                "produces": [
@@ -524,6 +747,13 @@
                        "schema": {
                            "$ref": "#/definitions/models.WorkshopManage"
                        }
                    },
                    {
                        "type": "string",
                        "description": "token",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
@@ -546,7 +776,7 @@
                3
            ],
            "x-enum-comments": {
                "AllCar": "全车",
                "AllCar": "全车结束",
                "LeftHalfCar": "左半车",
                "RightHalfCar": "右半车"
            },
@@ -554,6 +784,30 @@
                "LeftHalfCar",
                "RightHalfCar",
                "AllCar"
            ]
        },
        "constvar.CheckItem": {
            "type": "integer",
            "enum": [
                1,
                2,
                3,
                4,
                5
            ],
            "x-enum-comments": {
                "CheckItemCleanliness": "清洁分",
                "CheckItemDeviation": "纤度偏差",
                "CheckItemMaxDeviation": "最大偏差",
                "CheckItemPurity": "洁净分",
                "CheckItemTwiceChange": "二次变化"
            },
            "x-enum-varnames": [
                "CheckItemDeviation",
                "CheckItemTwiceChange",
                "CheckItemCleanliness",
                "CheckItemPurity",
                "CheckItemMaxDeviation"
            ]
        },
        "constvar.DictType": {
@@ -719,7 +973,7 @@
                },
                "workshopGroup": {
                    "description": "车组",
                    "type": "string"
                    "type": "integer"
                }
            }
        },
@@ -867,7 +1121,24 @@
                },
                "workshopGroup": {
                    "description": "车组",
                    "type": "integer"
                }
            }
        },
        "request.DynamicsRank": {
            "type": "object",
            "properties": {
                "rankName": {
                    "description": "等级名称",
                    "type": "string"
                },
                "rankProp": {
                    "description": "前缀key",
                    "type": "string"
                },
                "rankValue": {
                    "description": "等级值",
                    "type": "number"
                }
            }
        },
@@ -889,6 +1160,60 @@
                "sum": {
                    "description": "合计",
                    "type": "number"
                }
            }
        },
        "request.RankStandard": {
            "type": "object",
            "properties": {
                "checkItem": {
                    "description": "检查项目名称",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.CheckItem"
                        }
                    ]
                },
                "dynamicsRanks": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.DynamicsRank"
                    }
                },
                "endFineness": {
                    "description": "结束纤度",
                    "type": "number"
                },
                "lineId": {
                    "description": "行id",
                    "type": "string"
                },
                "rankA": {
                    "description": "野纤",
                    "type": "number"
                },
                "rankB": {
                    "description": "大野",
                    "type": "number"
                },
                "rankC": {
                    "description": "特野",
                    "type": "number"
                },
                "startFineness": {
                    "description": "开始纤度",
                    "type": "number"
                }
            }
        },
        "request.SaveRankStandard": {
            "type": "object",
            "properties": {
                "rankStandard": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.RankStandard"
                    }
                }
            }
        },
@@ -920,6 +1245,66 @@
                }
            }
        },
        "response.DynamicsRank": {
            "type": "object",
            "properties": {
                "rankName": {
                    "description": "等级名称",
                    "type": "string"
                },
                "rankProp": {
                    "description": "前缀key",
                    "type": "string"
                },
                "rankValue": {
                    "description": "等级值",
                    "type": "number"
                }
            }
        },
        "response.RankStandard": {
            "type": "object",
            "properties": {
                "checkItem": {
                    "description": "检查项目名称",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.CheckItem"
                        }
                    ]
                },
                "dynamicsRanks": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/response.DynamicsRank"
                    }
                },
                "endFineness": {
                    "description": "结束纤度",
                    "type": "number"
                },
                "lineId": {
                    "description": "行id",
                    "type": "string"
                },
                "rankA": {
                    "description": "野纤",
                    "type": "number"
                },
                "rankB": {
                    "description": "大野",
                    "type": "number"
                },
                "rankC": {
                    "description": "特野",
                    "type": "number"
                },
                "startFineness": {
                    "description": "开始纤度",
                    "type": "number"
                }
            }
        },
        "util.Response": {
            "type": "object",
            "properties": {