add temp
add created_at and creatorId to client
| | |
| | | return |
| | | } |
| | | |
| | | //CreatorId, b := c.Get("claims") |
| | | //if !b { |
| | | // ctx.Fail(ecode.JWTParseErr) |
| | | // return |
| | | //} |
| | | // |
| | | //client.CreatorId = CreatorId.(int) |
| | | |
| | | errCode = clientService.AddClient(client, params.SalesLeadsId) |
| | | if errCode != ecode.OK { |
| | | ctx.Fail(errCode) |
| | |
| | | "model.Client": { |
| | | "type": "object", |
| | | "properties": { |
| | | "_": { |
| | | "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25", |
| | | "type": "string" |
| | | }, |
| | | "business_scope": { |
| | | "type": "string" |
| | | }, |
| | |
| | | "country_id": { |
| | | "type": "integer" |
| | | }, |
| | | "created_at": { |
| | | "description": "The date when the item was created\nexample: 2023-08-10 15:48:25", |
| | | "type": "string" |
| | | }, |
| | | "creator_id": { |
| | | "type": "integer" |
| | | }, |
| | | "detail_address": { |
| | | "type": "string" |
| | | }, |
| | |
| | | } |
| | | }, |
| | | "id": { |
| | | "description": "The ID of the item\nexample: 1", |
| | | "type": "integer" |
| | | }, |
| | | "industry": { |
| | |
| | | }, |
| | | "service_member_id": { |
| | | "type": "integer" |
| | | }, |
| | | "updated_at": { |
| | | "description": "The date when the item was last updated\nexample: 2023-08-10 15:48:25", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "model.Client": { |
| | | "type": "object", |
| | | "properties": { |
| | | "_": { |
| | | "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25", |
| | | "type": "string" |
| | | }, |
| | | "business_scope": { |
| | | "type": "string" |
| | | }, |
| | |
| | | "country_id": { |
| | | "type": "integer" |
| | | }, |
| | | "created_at": { |
| | | "description": "The date when the item was created\nexample: 2023-08-10 15:48:25", |
| | | "type": "string" |
| | | }, |
| | | "creator_id": { |
| | | "type": "integer" |
| | | }, |
| | | "detail_address": { |
| | | "type": "string" |
| | | }, |
| | |
| | | } |
| | | }, |
| | | "id": { |
| | | "description": "The ID of the item\nexample: 1", |
| | | "type": "integer" |
| | | }, |
| | | "industry": { |
| | |
| | | }, |
| | | "service_member_id": { |
| | | "type": "integer" |
| | | }, |
| | | "updated_at": { |
| | | "description": "The date when the item was last updated\nexample: 2023-08-10 15:48:25", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | type: object |
| | | model.Client: |
| | | properties: |
| | | _: |
| | | description: |- |
| | | The date when the item was deleted |
| | | example: 2023-08-10 15:48:25 |
| | | type: string |
| | | business_scope: |
| | | type: string |
| | | city: |
| | |
| | | $ref: '#/definitions/model.Country' |
| | | country_id: |
| | | type: integer |
| | | created_at: |
| | | description: |- |
| | | The date when the item was created |
| | | example: 2023-08-10 15:48:25 |
| | | type: string |
| | | creator_id: |
| | | type: integer |
| | | detail_address: |
| | | type: string |
| | | enterprise_nature_id: |
| | |
| | | $ref: '#/definitions/model.FollowRecord' |
| | | type: array |
| | | id: |
| | | description: |- |
| | | The ID of the item |
| | | example: 1 |
| | | type: integer |
| | | industry: |
| | | $ref: '#/definitions/model.Industry' |
| | |
| | | type: string |
| | | service_member_id: |
| | | type: integer |
| | | updated_at: |
| | | description: |- |
| | | The date when the item was last updated |
| | | example: 2023-08-10 15:48:25 |
| | | type: string |
| | | type: object |
| | | model.ClientLevel: |
| | | properties: |
| | |
| | | ServiceMemberId int `json:"service_member_id" gorm:"column:service_member_id;type:int(11);comment:服务负责人ID"` |
| | | DetailAddress string `json:"detail_address" gorm:"column:detail_address;type:varchar(255);comment:详细地址"` |
| | | Remark string `json:"remark" gorm:"column:remark;type:varchar(255);comment:备注"` |
| | | CreatorId int `json:"creator_id" gorm:"column:creator_id;type:int;comment:创建人id"` |
| | | NextVisitTime *CustomTime `json:"next_visit_time" gorm:"column:next_visit_time;type:datetime;comment:下次回访时间"` |
| | | LatestServiceTime *CustomTime `json:"latest_service_time" gorm:"column:latest_service_time;type:datetime;comment:最晚服务时间"` |
| | | FollowRecord []FollowRecord `json:"follow_record" gorm:"foreignKey:ClientId"` |
| | | Address |
| | | Business |
| | | gorm.Model `json:"-"` |
| | | gormModel |
| | | } |
| | | |
| | | ClientSearch struct { |