fix
wangpengfei
2023-08-24 13758bde7d19cb2738a801de46052ae284ff6a7e
fix
4个文件已修改
126 ■■■■ 已修改文件
docs/docs.go 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/request/serviceContract.go 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go
@@ -11845,6 +11845,14 @@
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "description": "客户id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Client"
                        }
                    ]
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
@@ -13877,6 +13885,14 @@
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "description": "客户id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Client"
                        }
                    ]
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
@@ -14331,6 +14347,12 @@
                    "type": "integer"
                },
                "salesDetailsId": {
                    "type": "integer"
                },
                "serviceContractStatusId": {
                    "type": "integer"
                },
                "serviceContractTypeId": {
                    "type": "integer"
                },
                "serviceTimes": {
@@ -16930,6 +16952,14 @@
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "description": "客户id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Client"
                        }
                    ]
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
@@ -17608,6 +17638,12 @@
                "salesDetailsId": {
                    "type": "integer"
                },
                "serviceContractStatusId": {
                    "type": "integer"
                },
                "serviceContractTypeId": {
                    "type": "integer"
                },
                "serviceTimes": {
                    "type": "integer"
                },
docs/swagger.json
@@ -11833,6 +11833,14 @@
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "description": "客户id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Client"
                        }
                    ]
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
@@ -13865,6 +13873,14 @@
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "description": "客户id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Client"
                        }
                    ]
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
@@ -14319,6 +14335,12 @@
                    "type": "integer"
                },
                "salesDetailsId": {
                    "type": "integer"
                },
                "serviceContractStatusId": {
                    "type": "integer"
                },
                "serviceContractTypeId": {
                    "type": "integer"
                },
                "serviceTimes": {
@@ -16918,6 +16940,14 @@
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "description": "客户id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Client"
                        }
                    ]
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
@@ -17596,6 +17626,12 @@
                "salesDetailsId": {
                    "type": "integer"
                },
                "serviceContractStatusId": {
                    "type": "integer"
                },
                "serviceContractTypeId": {
                    "type": "integer"
                },
                "serviceTimes": {
                    "type": "integer"
                },
docs/swagger.yaml
@@ -1158,6 +1158,10 @@
      bankAccountId:
        description: 账户id
        type: integer
      client:
        allOf:
        - $ref: '#/definitions/model.Client'
        description: 客户id
      clientId:
        description: 客户id
        type: integer
@@ -2523,6 +2527,10 @@
      bankAccountId:
        description: 账户id
        type: integer
      client:
        allOf:
        - $ref: '#/definitions/model.Client'
        description: 客户id
      clientId:
        description: 客户id
        type: integer
@@ -2821,6 +2829,10 @@
      saleChanceId:
        type: integer
      salesDetailsId:
        type: integer
      serviceContractStatusId:
        type: integer
      serviceContractTypeId:
        type: integer
      serviceTimes:
        type: integer
@@ -4613,6 +4625,10 @@
      bankAccountId:
        description: 账户id
        type: integer
      client:
        allOf:
        - $ref: '#/definitions/model.Client'
        description: 客户id
      clientId:
        description: 客户id
        type: integer
@@ -5062,6 +5078,10 @@
        type: integer
      salesDetailsId:
        type: integer
      serviceContractStatusId:
        type: integer
      serviceContractTypeId:
        type: integer
      serviceTimes:
        type: integer
      signTime:
model/request/serviceContract.go
@@ -10,22 +10,24 @@
}
type ServiceContract struct {
    ClientId       int              `json:"clientId"`
    Number         string           `json:"number"`
    MemberId       int              `json:"memberId" binding:"required"`
    ContactId      int              `json:"contactId"`
    SaleChanceId   int              `json:"saleChanceId"`
    SalesDetailsId int              `json:"salesDetailsId"`
    QuotationId    int              `json:"quotationId"`
    TypeId         int              `json:"typeId"`
    SignTime       string           `json:"signTime" binding:"datetime=2006-01-02"`
    StartTime      string           `json:"startTime"`
    EndTime        string           `json:"endTime"`
    StatusId       int              `json:"statusId"`
    ServiceTimes   int              `json:"serviceTimes"`
    Terms          string           `json:"terms"`
    Remark         string           `json:"remark"`
    Products       []*model.Product `json:"products"`
    ClientId                int              `json:"clientId"`
    Number                  string           `json:"number"`
    MemberId                int              `json:"memberId" binding:"required"`
    ContactId               int              `json:"contactId"`
    SaleChanceId            int              `json:"saleChanceId"`
    SalesDetailsId          int              `json:"salesDetailsId"`
    QuotationId             int              `json:"quotationId"`
    TypeId                  int              `json:"typeId"`
    SignTime                string           `json:"signTime" binding:"datetime=2006-01-02"`
    StartTime               string           `json:"startTime"`
    EndTime                 string           `json:"endTime"`
    StatusId                int              `json:"statusId"`
    ServiceTimes            int              `json:"serviceTimes"`
    Terms                   string           `json:"terms"`
    Remark                  string           `json:"remark"`
    Products                []*model.Product `json:"products"`
    ServiceContractTypeId   int              `json:"serviceContractTypeId"`
    ServiceContractStatusId int              `json:"serviceContractStatusId"`
}
type UpdateServiceContract struct {