| | |
| | | // @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 |
| | |
| | | "description": "账户id", |
| | | "type": "integer" |
| | | }, |
| | | "client": { |
| | | "description": "客户id", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/model.Client" |
| | | } |
| | | ] |
| | | }, |
| | | "clientId": { |
| | | "description": "客户id", |
| | | "type": "integer" |
| | |
| | | "contactId": { |
| | | "type": "integer" |
| | | }, |
| | | "createTime": { |
| | | "description": "创建时间", |
| | | "type": "string" |
| | | }, |
| | | "file": { |
| | | "type": "string" |
| | | }, |
| | |
| | | }, |
| | | "timelyRateId": { |
| | | "type": "integer" |
| | | }, |
| | | "updateTime": { |
| | | "description": "修改时间", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "bankAccountId": { |
| | | "description": "账户id", |
| | | "type": "integer" |
| | | }, |
| | | "client": { |
| | | "description": "客户id", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/model.Client" |
| | | } |
| | | ] |
| | | }, |
| | | "clientId": { |
| | | "description": "客户id", |
| | |
| | | "description": "账户id", |
| | | "type": "integer" |
| | | }, |
| | | "client": { |
| | | "description": "客户id", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/model.Client" |
| | | } |
| | | ] |
| | | }, |
| | | "clientId": { |
| | | "description": "客户id", |
| | | "type": "integer" |
| | |
| | | "description": "账户id", |
| | | "type": "integer" |
| | | }, |
| | | "client": { |
| | | "description": "客户id", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/model.Client" |
| | | } |
| | | ] |
| | | }, |
| | | "clientId": { |
| | | "description": "客户id", |
| | | "type": "integer" |
| | |
| | | "contactId": { |
| | | "type": "integer" |
| | | }, |
| | | "createTime": { |
| | | "description": "创建时间", |
| | | "type": "string" |
| | | }, |
| | | "file": { |
| | | "type": "string" |
| | | }, |
| | |
| | | }, |
| | | "timelyRateId": { |
| | | "type": "integer" |
| | | }, |
| | | "updateTime": { |
| | | "description": "修改时间", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "bankAccountId": { |
| | | "description": "账户id", |
| | | "type": "integer" |
| | | }, |
| | | "client": { |
| | | "description": "客户id", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/model.Client" |
| | | } |
| | | ] |
| | | }, |
| | | "clientId": { |
| | | "description": "客户id", |
| | |
| | | "description": "账户id", |
| | | "type": "integer" |
| | | }, |
| | | "client": { |
| | | "description": "客户id", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/model.Client" |
| | | } |
| | | ] |
| | | }, |
| | | "clientId": { |
| | | "description": "客户id", |
| | | "type": "integer" |
| | |
| | | bankAccountId: |
| | | description: 账户id |
| | | type: integer |
| | | client: |
| | | allOf: |
| | | - $ref: '#/definitions/model.Client' |
| | | description: 客户id |
| | | clientId: |
| | | description: 客户id |
| | | type: integer |
| | |
| | | $ref: '#/definitions/model.Contact' |
| | | contactId: |
| | | type: integer |
| | | createTime: |
| | | description: 创建时间 |
| | | type: string |
| | | file: |
| | | type: string |
| | | id: |
| | |
| | | $ref: '#/definitions/model.TimelyRate' |
| | | timelyRateId: |
| | | type: integer |
| | | updateTime: |
| | | description: 修改时间 |
| | | type: string |
| | | type: object |
| | | model.ServiceOrder: |
| | | properties: |
| | |
| | | bankAccountId: |
| | | description: 账户id |
| | | type: integer |
| | | client: |
| | | allOf: |
| | | - $ref: '#/definitions/model.Client' |
| | | description: 客户id |
| | | clientId: |
| | | description: 客户id |
| | | type: integer |
| | |
| | | bankAccountId: |
| | | description: 账户id |
| | | type: integer |
| | | client: |
| | | allOf: |
| | | - $ref: '#/definitions/model.Client' |
| | | description: 客户id |
| | | clientId: |
| | | description: 客户id |
| | | type: integer |
| | |
| | | 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:"-"` |
| | | } |
| | | |
| | |
| | | } |
| | | ) |
| | | |
| | | 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(), |