diff --git a/api/dto/UserDoctor.go b/api/dto/UserDoctor.go index 5459808..fa7dd30 100644 --- a/api/dto/UserDoctor.go +++ b/api/dto/UserDoctor.go @@ -34,7 +34,6 @@ type UserDoctorDto struct { PraiseRate float64 `json:"praise_rate"` // 好评率(百分制。订单平均评价中超过4-5分的订单总数 / 总订单数 * 5) AvgResponseTime float64 `json:"avg_response_time"` // 平均响应时间(分钟制) NumberOfFans uint `json:"number_of_fans"` // 被关注数量 - IsOnline int `json:"is_online"` // 是否在线(0:不在线 1:在线) IsPlatformDeepCooperation int `json:"is_platform_deep_cooperation"` // 是否平台深度合作医生(0:否 1:是) IsEnterpriseDeepCooperation int `json:"is_enterprise_deep_cooperation"` // 是否企业深度合作医生(0:否 1:是) IsSysDiagnoCooperation int `json:"is_sys_diagno_cooperation"` // 是否先思达合作医生(0:否 1:是) @@ -55,6 +54,7 @@ type UserDoctorDto struct { DoctorBankCard *DoctorBankCardDto `json:"doctor_bank_card"` // 医生银行卡 InquiryType string `json:"inquiry_type"` // 服务类型 UserCaCert *UserCaCertDto `json:"user_ca_cert"` // ca监管证书 + IsOnline int `json:"is_online"` // 是否在线(0:不在线 1:在线) } type UserDoctorPendingDto struct { diff --git a/api/model/userDoctor.go b/api/model/userDoctor.go index 2fba183..4f9316d 100644 --- a/api/model/userDoctor.go +++ b/api/model/userDoctor.go @@ -34,7 +34,6 @@ type UserDoctor struct { PraiseRate float64 `gorm:"column:praise_rate;type:float(10,2);default:0.00;comment:好评率(百分制。订单平均评价中超过4-5分的订单总数 / 总订单数 * 5)" json:"praise_rate"` AvgResponseTime float64 `gorm:"column:avg_response_time;type:float(10,2);default:0.00;comment:平均响应时间(分钟制)" json:"avg_response_time"` NumberOfFans uint `gorm:"column:number_of_fans;type:int(10) unsigned;default:0;comment:被关注数量" json:"number_of_fans"` - IsOnline int `gorm:"column:is_online;type:tinyint(1);default:0;comment:是否在线(0:不在线 1:在线)" json:"is_online"` IsImgExpertReception int `gorm:"column:is_img_expert_reception;type:tinyint(1);default:0;comment:是否参加专家图文接诊(0:否 1:是)" json:"is_img_expert_reception"` IsImgWelfareReception int `gorm:"column:is_img_welfare_reception;type:tinyint(1);default:0;comment:是否参加公益图文问诊(0:否 1:是)" json:"is_img_welfare_reception"` IsImgQuickReception int `gorm:"column:is_img_quick_reception;type:tinyint(1);default:0;comment:是否参加快速图文接诊(0:否 1:是)" json:"is_img_quick_reception"` diff --git a/api/service/export.go b/api/service/export.go index a586ea9..dde3e9f 100644 --- a/api/service/export.go +++ b/api/service/export.go @@ -81,7 +81,6 @@ type UserDoctorData struct { PraiseRate float64 // 好评率(百分制。订单平均评价中超过4-5分的订单总数 / 总订单数 * 5) AvgResponseTime float64 // 平均响应时间(分钟制) NumberOfFans string // 被关注数量 - IsOnline string // 是否在线(0:不在线 1:在线) IsPlatformDeepCooperation string // 是否平台深度合作医生(0:否 1:是) IsEnterpriseDeepCooperation string // 是否企业深度合作医生(0:否 1:是) IsSysDiagnoCooperation string // 是否先思达合作医生(0:否 1:是) @@ -594,7 +593,6 @@ func (r *ExportService) UserDoctor(userDoctors []*model.UserDoctor) (string, err {Value: "好评率(百分制)", CellType: "string", NumberFmt: "", ColWidth: 18}, {Value: "平均响应时间(分钟制)", CellType: "string", NumberFmt: "", ColWidth: 25}, {Value: "被关注数量", CellType: "string", NumberFmt: "", ColWidth: 18}, - {Value: "在线", CellType: "string", NumberFmt: "", ColWidth: 18}, {Value: "平台深度合作医生", CellType: "string", NumberFmt: "", ColWidth: 18}, {Value: "企业深度合作医生", CellType: "string", NumberFmt: "", ColWidth: 18}, {Value: "先思达合作医生", CellType: "string", NumberFmt: "", ColWidth: 18}, @@ -645,7 +643,6 @@ func (r *ExportService) UserDoctor(userDoctors []*model.UserDoctor) (string, err PraiseRate: v.PraiseRate, AvgResponseTime: v.AvgResponseTime, NumberOfFans: fmt.Sprintf("%d", v.NumberOfFans), - IsOnline: utils.IsOnlineToString(v.IsOnline), IsPlatformDeepCooperation: utils.IsPlatformDeepCooperationToString(v.IsPlatformDeepCooperation), IsEnterpriseDeepCooperation: utils.IsEnterpriseDeepCooperationToString(v.IsEnterpriseDeepCooperation), IsSysDiagnoCooperation: utils.IsSysDiagnoCooperationToString(v.IsSysDiagnoCooperation),