package commonus //获取Token类型设置 type getTokenType struct { Type string `json:"type"` } //组织架构返回统类 type weChatCallBack struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` Accesstoken string `json:"access_token"` Expiresin int64 `json:"expires_in"` } //获取部门列表 type dePartMent struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` DePartMent []DePartMentInfo `json:"department"` } type DePartMentInfo struct { Id int64 `json:"id"` Name string `json:"name"` NameEN string `json:"name_en"` Parentid int64 `json:"parentid"` Order int64 `json:"order"` } type dePartMentInfoStr struct { Id string `json:"id"` Name string `json:"name"` NameEN string `json:"name_en"` Parentid string `json:"parentid"` Order string `json:"order"` } //添加部门列表 type DePartMentCallBack struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` Id int64 `json:"id"` } //健康上报使用统计 type HealthReportStat struct { Errcode int `json:"errcode"` //返回码 Errmsg string `json:"errmsg"` //对返回码的文本描述内容 Pv int64 `json:"pv"` //应用使用次数 Uv int64 `json:"uv"` //应用使用成员数 } //获取参数样式健康上报使用统计 type GetHealthReport struct { Date string `json:"date"` } //正在运行的上报任务ID列表。 type GetHealthReportRun struct { Offset int `json:"offset"` Limit int64 `json:"limit"` } //获取企业当前正在运行的上报任务ID列表。 type CallBackData struct { Errcode int `json:"errcode"` ErrMsg string `json:"errmsg"` Ending int `json:"ending"` Jobids []interface{} `json:"jobids"` } //获取指定的健康上报任务详情。 type GetReportJobInfoDate struct { JobId string `json:"jobid"` Date string `json:"date"` } type CallBackReportJobInfo struct { Errcode int `json:"errcode"` ErrMsg string `json:"errmsg"` JobInfo ReportJobInfo `json:"job_info"` } type ReportJobInfo struct { Title string `json:"title"` Creator string `json:"creator"` Type int `json:"type"` ApplyRange ApplyRangeStruct `json:"apply_range"` ReportTo ApplyRangeStruct `json:"report_to"` // ReportTo ReportToStruct `json:"report_to"` ReportType int `json:"report_type"` SkipWeekend int `json:"skip_weekend"` FinishCnt int `json:"finish_cnt"` QuestionTemplates []QuestionTemplatesStruct `json:"question_templates"` } type ApplyRangeStruct struct { UserIds []string `json:"userids"` Partyids []int64 `json:"partyids"` } type ReportToStruct struct { UserIds []string `json:"userids"` } type QuestionTemplatesStruct struct { QuestionId int64 `json:"question_id"` Title string `json:"title"` QuestionType int `json:"question_type"` IsRequired int `json:"is_required"` OptionList []OptionListStruct `json:"option_list"` } type OptionListStruct struct { OptionId int `json:"option_id"` OptionText string `json:"option_text"` } //获取用户填写答案列表 type ReportAnswerStruct struct { JobId string `json:"jobid"` Date string `json:"date"` Offset int `json:"offset"` Limit int64 `json:"limit"` } //获取用户填写答案返回结果 type ReportAnswerResult struct { Errcode int `json:"errcode"` ErrMsg string `json:"errmsg"` Answers []AnswersStruct `json:"answers"` } type AnswersStruct struct { IdType int `json:"id_type"` Userid string `json:"userid"` StudentUserid string `json:"student_userid"` ParentUserid string `json:"parent_userid"` ReportValues []ReportValuesStruct `json:"report_values"` } type ReportValuesStruct struct { QuestionId int `json:"question_id"` SingleChoice int `json:"single_choice"` Text string `json:"text"` MultiChoice []int `json:"multi_choice"` Fileid []string `json:"fileid"` } //行政区域 type AdministrativeDivision struct { Userid string `json:"userid"` Province string `json:"province"` City string `json:"city"` County string `json:"county"` }