fix
wangpengfei
2023-08-24 aba26abcad3be98c079e21c0b1289ab538548564
fix

fix supplier
5个文件已修改
39 ■■■■■ 已修改文件
docs/docs.go 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
global/model.go 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/test/supplier.go 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go
@@ -3452,6 +3452,11 @@
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "status",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "supplierType",
                        "in": "query"
@@ -3582,6 +3587,11 @@
                    {
                        "type": "string",
                        "name": "startCreatedAt",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "status",
                        "in": "query"
                    },
                    {
@@ -7768,6 +7778,9 @@
                "responsiblePersonId": {
                    "type": "integer"
                },
                "status": {
                    "type": "integer"
                },
                "supplierType": {
                    "type": "string"
                },
docs/swagger.json
@@ -3443,6 +3443,11 @@
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "status",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "name": "supplierType",
                        "in": "query"
@@ -3573,6 +3578,11 @@
                    {
                        "type": "string",
                        "name": "startCreatedAt",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "status",
                        "in": "query"
                    },
                    {
@@ -7759,6 +7769,9 @@
                "responsiblePersonId": {
                    "type": "integer"
                },
                "status": {
                    "type": "integer"
                },
                "supplierType": {
                    "type": "string"
                },
docs/swagger.yaml
@@ -1503,6 +1503,8 @@
        type: string
      responsiblePersonId:
        type: integer
      status:
        type: integer
      supplierType:
        type: string
      url:
@@ -3479,6 +3481,9 @@
        name: responsiblePersonId
        type: integer
      - in: query
        name: status
        type: integer
      - in: query
        name: supplierType
        type: string
      - in: query
@@ -3560,6 +3565,9 @@
        name: startCreatedAt
        type: string
      - in: query
        name: status
        type: integer
      - in: query
        name: supplierType
        type: string
      - in: query
global/model.go
@@ -8,7 +8,7 @@
type GVA_MODEL struct {
    ID        uint           `gorm:"primarykey"`     // 主键ID
    CreatedAt time.Time      `json:"-"`              // 创建时间
    UpdatedAt time.Time      `json:"-"`              // 更新时间
    CreatedAt *time.Time     `json:"-"`              // 创建时间
    UpdatedAt *time.Time     `json:"-"`              // 更新时间
    DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` // 删除时间
}
model/test/supplier.go
@@ -22,6 +22,7 @@
    Account             string `json:"account" form:"account" gorm:"column:account;comment:账号;size:255;"`
    Bank                string `json:"bank" form:"bank" gorm:"column:bank;comment:开户行;size:255;"`
    File                string `json:"file" form:"file" gorm:"column:file;comment:文件;"`
    Status              int    `json:"status" form:"status" gorm:"column:status;comment:状态;size:11;"`
}
// TableName Supplier 表名