zhangqian
2023-08-24 b6f3c2160c7633b3492575c1de39735a04c9e63e
回访单列表返回增加修改时间创建时间
5个文件已修改
95 ■■■■■ 已修改文件
api/v1/serviceFollowup.go 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/serviceFollowup.go 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/v1/serviceFollowup.go
@@ -132,7 +132,9 @@
//    @Summary    回访单管理列表
//    @Produce    application/json
//    @Param        object    body        request.GetServiceFollowupList    true    "参数"
//
//    @Success    200        {object}    contextx.Response{data=response.ServiceFollowupResponse}
//
//    @Router        /api/serviceFollowup/list [post]
func (con *ServiceFollowupApi) List(c *gin.Context) {
    var params request.GetServiceFollowupList
docs/docs.go
@@ -11845,6 +11845,14 @@
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "description": "客户id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Client"
                        }
                    ]
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
@@ -12746,6 +12754,10 @@
                "contactId": {
                    "type": "integer"
                },
                "createTime": {
                    "description": "创建时间",
                    "type": "string"
                },
                "file": {
                    "type": "string"
                },
@@ -12799,6 +12811,10 @@
                },
                "timelyRateId": {
                    "type": "integer"
                },
                "updateTime": {
                    "description": "修改时间",
                    "type": "string"
                }
            }
        },
@@ -13876,6 +13892,14 @@
                "bankAccountId": {
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "description": "客户id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Client"
                        }
                    ]
                },
                "clientId": {
                    "description": "客户id",
@@ -16930,6 +16954,14 @@
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "description": "客户id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Client"
                        }
                    ]
                },
                "clientId": {
                    "description": "客户id",
                    "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"
@@ -12734,6 +12742,10 @@
                "contactId": {
                    "type": "integer"
                },
                "createTime": {
                    "description": "创建时间",
                    "type": "string"
                },
                "file": {
                    "type": "string"
                },
@@ -12787,6 +12799,10 @@
                },
                "timelyRateId": {
                    "type": "integer"
                },
                "updateTime": {
                    "description": "修改时间",
                    "type": "string"
                }
            }
        },
@@ -13864,6 +13880,14 @@
                "bankAccountId": {
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "description": "客户id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Client"
                        }
                    ]
                },
                "clientId": {
                    "description": "客户id",
@@ -16918,6 +16942,14 @@
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "description": "客户id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Client"
                        }
                    ]
                },
                "clientId": {
                    "description": "客户id",
                    "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
@@ -1756,6 +1760,9 @@
        $ref: '#/definitions/model.Contact'
      contactId:
        type: integer
      createTime:
        description: 创建时间
        type: string
      file:
        type: string
      id:
@@ -1792,6 +1799,9 @@
        $ref: '#/definitions/model.TimelyRate'
      timelyRateId:
        type: integer
      updateTime:
        description: 修改时间
        type: string
    type: object
  model.ServiceOrder:
    properties:
@@ -2523,6 +2533,10 @@
      bankAccountId:
        description: 账户id
        type: integer
      client:
        allOf:
        - $ref: '#/definitions/model.Client'
        description: 客户id
      clientId:
        description: 客户id
        type: integer
@@ -4613,6 +4627,10 @@
      bankAccountId:
        description: 账户id
        type: integer
      client:
        allOf:
        - $ref: '#/definitions/model.Client'
        description: 客户id
      clientId:
        description: 客户id
        type: integer
model/serviceFollowup.go
@@ -33,7 +33,8 @@
        OldMember      User         `json:"oldMember" gorm:"foreignKey:OldMemberId"`
        Remark         string       `json:"remark" gorm:"column:remark;type:text;comment:备注"`
        File           string       `json:"file" gorm:"column:file;type:varchar(255);comment:附件"`
        CreateTime     string       `json:"createTime"` //创建时间
        UpdateTime     string       `json:"updateTime"` //修改时间
        gorm.Model `json:"-"`
    }
@@ -49,10 +50,16 @@
    }
)
func (ServiceFollowup) TableName() string {
func (*ServiceFollowup) TableName() string {
    return "service_followup"
}
func (slf *ServiceFollowup) AfterFind(db *gorm.DB) error {
    slf.CreateTime = slf.CreatedAt.Format("2006-01-02 15:04")
    slf.UpdateTime = slf.UpdatedAt.Format("2006-01-02 15:04")
    return nil
}
func NewServiceFollowupSearch() *ServiceFollowupSearch {
    return &ServiceFollowupSearch{
        Orm: mysqlx.GetDB(),