diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinOA/Approval/CgibinOAApplyEventRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinOA/Approval/CgibinOAApplyEventRequest.cs index 20580d68..b5e68627 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinOA/Approval/CgibinOAApplyEventRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinOA/Approval/CgibinOAApplyEventRequest.cs @@ -54,7 +54,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models public class Value { /// - /// 获取或设置 Text 控件文本值。 + /// 获取或设置 TextSettings 控件文本值。 /// [Newtonsoft.Json.JsonProperty("text")] [System.Text.Json.Serialization.JsonPropertyName("text")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinOA/Approval/CgibinOAGetApprovalDetailResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinOA/Approval/CgibinOAGetApprovalDetailResponse.cs index 68a51761..3fd6b31a 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinOA/Approval/CgibinOAGetApprovalDetailResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinOA/Approval/CgibinOAGetApprovalDetailResponse.cs @@ -133,7 +133,7 @@ public class Value { /// - /// 获取或设置 Text 控件文本值。 + /// 获取或设置 TextSettings 控件文本值。 /// [Newtonsoft.Json.JsonProperty("text")] [System.Text.Json.Serialization.JsonPropertyName("text")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinOA/Journal/CgibinOAJournalGetRecordDetailResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinOA/Journal/CgibinOAJournalGetRecordDetailResponse.cs index 08ca4d94..97746a8b 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinOA/Journal/CgibinOAJournalGetRecordDetailResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinOA/Journal/CgibinOAJournalGetRecordDetailResponse.cs @@ -36,7 +36,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models public class Value { /// - /// 获取或设置 Text 控件文本值。 + /// 获取或设置 TextSettings 控件文本值。 /// [Newtonsoft.Json.JsonProperty("text")] [System.Text.Json.Serialization.JsonPropertyName("text")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/Form/CgibinWedocCreateFormRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/Form/CgibinWedocCreateFormRequest.cs index 7028327f..40733ddd 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/Form/CgibinWedocCreateFormRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/Form/CgibinWedocCreateFormRequest.cs @@ -50,6 +50,327 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models [System.Text.Json.Serialization.JsonPropertyName("status")] public int Status { get; set; } } + + public class ExtendedSettings + { + public static class Types + { + public class TextSettings + { + /// + /// 获取或设置校验类型。 + /// + [Newtonsoft.Json.JsonProperty("validation_type")] + [System.Text.Json.Serialization.JsonPropertyName("validation_type")] + public int? ValidationType { get; set; } + + /// + /// 获取或设置校验详情类型。 + /// + [Newtonsoft.Json.JsonProperty("validation_detail")] + [System.Text.Json.Serialization.JsonPropertyName("validation_detail")] + public int? ValidationDetailType { get; set; } + + /// + /// 获取或设置字符长度。 + /// + [Newtonsoft.Json.JsonProperty("char_len")] + [System.Text.Json.Serialization.JsonPropertyName("char_len")] + public int? CharacterLength { get; set; } + + /// + /// 获取或设置数字的区间左端。 + /// + [Newtonsoft.Json.JsonProperty("number_min")] + [System.Text.Json.Serialization.JsonPropertyName("number_min")] + public double? NumberMinimum { get; set; } + + /// + /// 获取或设置数字的区间右端。 + /// + [Newtonsoft.Json.JsonProperty("number_max")] + [System.Text.Json.Serialization.JsonPropertyName("number_max")] + public double? NumberMaximum { get; set; } + } + + public class RadioSettings + { + /// + /// 获取或设置是否增加“其他”选项。 + /// + [Newtonsoft.Json.JsonProperty("add_other_option")] + [System.Text.Json.Serialization.JsonPropertyName("add_other_option")] + public bool? RequireAddOtherOption { get; set; } + } + + public class CheckboxSettings + { + /// + /// 获取或设置是否增加“其他”选项。 + /// + [Newtonsoft.Json.JsonProperty("add_other_option")] + [System.Text.Json.Serialization.JsonPropertyName("add_other_option")] + public bool? RequireAddOtherOption { get; set; } + + /// + /// 获取或设置多选类型。 + /// + [Newtonsoft.Json.JsonProperty("type")] + [System.Text.Json.Serialization.JsonPropertyName("type")] + public int? Type { get; set; } + + /// + /// 获取或设置多选题可勾选的数量的限制。 + /// + [Newtonsoft.Json.JsonProperty("number")] + [System.Text.Json.Serialization.JsonPropertyName("number")] + public int? Count { get; set; } + } + + public class LocationSettings + { + /// + /// 获取或设置位置类型。 + /// + [Newtonsoft.Json.JsonProperty("location_type")] + [System.Text.Json.Serialization.JsonPropertyName("location_type")] + public int? LocationType { get; set; } + + /// + /// 获取或设置允许定位范围类型。 + /// + [Newtonsoft.Json.JsonProperty("distance_type")] + [System.Text.Json.Serialization.JsonPropertyName("distance_type")] + public int? DistanceType { get; set; } + } + + public class ImageSettings + { + public static class Types + { + public class UploadLimitation + { + /// + /// 获取或设置数量限制类型。 + /// + [Newtonsoft.Json.JsonProperty("count_limit_type")] + [System.Text.Json.Serialization.JsonPropertyName("count_limit_type")] + public int? CountLimitType { get; set; } + + /// + /// 获取或设置数量限制。 + /// + [Newtonsoft.Json.JsonProperty("count")] + [System.Text.Json.Serialization.JsonPropertyName("count")] + public int? Count { get; set; } + + /// + /// 获取或设置单个文件大小限制(单位:字节)。 + /// + [Newtonsoft.Json.JsonProperty("max_size")] + [System.Text.Json.Serialization.JsonPropertyName("max_size")] + public int? MaxSize { get; set; } + } + } + + /// + /// 获取或设置是否仅限手机拍照。 + /// + [Newtonsoft.Json.JsonProperty("camera_only")] + [System.Text.Json.Serialization.JsonPropertyName("camera_only")] + public bool? IsCameraOnly { get; set; } + + /// + /// 获取或设置上传限制信息。 + /// + [Newtonsoft.Json.JsonProperty("upload_image_limit")] + [System.Text.Json.Serialization.JsonPropertyName("upload_image_limit")] + public Types.UploadLimitation? UploadLimitation { get; set; } + } + + public class FileSettings + { + public static class Types + { + public class UploadLimitation : ImageSettings.Types.UploadLimitation + { + } + } + + /// + /// 获取或设置是否仅限手机拍照。 + /// + [Newtonsoft.Json.JsonProperty("camera_only")] + [System.Text.Json.Serialization.JsonPropertyName("camera_only")] + public bool? IsCameraOnly { get; set; } + + /// + /// 获取或设置上传限制信息。 + /// + [Newtonsoft.Json.JsonProperty("upload_image_limit")] + [System.Text.Json.Serialization.JsonPropertyName("upload_image_limit")] + public Types.UploadLimitation? UploadLimitation { get; set; } + } + + public class DateSettings + { + /// + /// 获取或设置日期格式类型。 + /// + [Newtonsoft.Json.JsonProperty("date_format_type")] + [System.Text.Json.Serialization.JsonPropertyName("date_format_type")] + public int? DateFormatType { get; set; } + } + + public class TimeSettings + { + /// + /// 获取或设置时间格式类型。 + /// + [Newtonsoft.Json.JsonProperty("time_format_type")] + [System.Text.Json.Serialization.JsonPropertyName("time_format_type")] + public int? TimeFormatType { get; set; } + } + + public class DurationSettings + { + /// + /// 获取或设置时间刻度。 + /// + [Newtonsoft.Json.JsonProperty("time_scale")] + [System.Text.Json.Serialization.JsonPropertyName("time_scale")] + public int? TimeScale { get; set; } + + /// + /// 获取或设置日期类型。 + /// + [Newtonsoft.Json.JsonProperty("date_type")] + [System.Text.Json.Serialization.JsonPropertyName("date_type")] + public int? DateType { get; set; } + + /// + /// 获取或设置单位换算。 + /// + [Newtonsoft.Json.JsonProperty("day_range")] + [System.Text.Json.Serialization.JsonPropertyName("day_range")] + public int? DayRange { get; set; } + } + + public class TemperatureSettings + { + /// + /// 获取或设置温度单位类型。 + /// + [Newtonsoft.Json.JsonProperty("unit_type")] + [System.Text.Json.Serialization.JsonPropertyName("unit_type")] + public int? UnitType { get; set; } + } + + public class DepartmentSettings + { + /// + /// 获取或设置是否允许多选。 + /// + [Newtonsoft.Json.JsonProperty("allow_multiple_selection")] + [System.Text.Json.Serialization.JsonPropertyName("allow_multiple_selection")] + public bool? AllowMultipleSelection { get; set; } + } + + public class MemberSettings + { + /// + /// 获取或设置是否允许多选。 + /// + [Newtonsoft.Json.JsonProperty("allow_multiple_selection")] + [System.Text.Json.Serialization.JsonPropertyName("allow_multiple_selection")] + public bool? AllowMultipleSelection { get; set; } + } + } + + /// + /// 获取或设置文本题的题目设置。 + /// + [Newtonsoft.Json.JsonProperty("text_setting")] + [System.Text.Json.Serialization.JsonPropertyName("text_setting")] + public Types.TextSettings? TextSettings { get; set; } + + /// + /// 获取或设置单选题的题目设置。 + /// + [Newtonsoft.Json.JsonProperty("radio_setting")] + [System.Text.Json.Serialization.JsonPropertyName("radio_setting")] + public Types.RadioSettings? RadioSettings { get; set; } + + /// + /// 获取或设置多选题的题目设置。 + /// + [Newtonsoft.Json.JsonProperty("checkbox_setting")] + [System.Text.Json.Serialization.JsonPropertyName("checkbox_setting")] + public Types.CheckboxSettings? CheckboxSettings { get; set; } + + /// + /// 获取或设置位置题的题目设置。 + /// + [Newtonsoft.Json.JsonProperty("location_setting")] + [System.Text.Json.Serialization.JsonPropertyName("location_setting")] + public Types.LocationSettings? LocationSettings { get; set; } + + /// + /// 获取或设置图片题的题目设置。 + /// + [Newtonsoft.Json.JsonProperty("image_setting")] + [System.Text.Json.Serialization.JsonPropertyName("image_setting")] + public Types.ImageSettings? ImageSettings { get; set; } + + /// + /// 获取或设置文件题的题目设置。 + /// + [Newtonsoft.Json.JsonProperty("file_setting")] + [System.Text.Json.Serialization.JsonPropertyName("file_setting")] + public Types.FileSettings? FileSettings { get; set; } + + /// + /// 获取或设置日期题的题目设置。 + /// + [Newtonsoft.Json.JsonProperty("date_setting")] + [System.Text.Json.Serialization.JsonPropertyName("date_setting")] + public Types.DateSettings? DateSettings { get; set; } + + /// + /// 获取或设置时间题的题目设置。 + /// + [Newtonsoft.Json.JsonProperty("time_setting")] + [System.Text.Json.Serialization.JsonPropertyName("time_setting")] + public Types.TimeSettings? TimeSettings { get; set; } + + /// + /// 获取或设置时长题的题目设置。 + /// + [Newtonsoft.Json.JsonProperty("duration_setting")] + [System.Text.Json.Serialization.JsonPropertyName("duration_setting")] + public Types.DurationSettings? DurationSettings { get; set; } + + /// + /// 获取或设置体温题的题目设置。 + /// + [Newtonsoft.Json.JsonProperty("temperature_setting")] + [System.Text.Json.Serialization.JsonPropertyName("temperature_setting")] + public Types.TemperatureSettings? TemperatureSettings { get; set; } + + /// + /// 获取或设置部门题的题目设置。 + /// + [Newtonsoft.Json.JsonProperty("department_setting")] + [System.Text.Json.Serialization.JsonPropertyName("department_setting")] + public Types.DepartmentSettings? DepartmentSettings { get; set; } + + /// + /// 获取或设置成员题的题目设置。 + /// + [Newtonsoft.Json.JsonProperty("member_setting")] + [System.Text.Json.Serialization.JsonPropertyName("member_setting")] + public Types.MemberSettings? MemberSettings { get; set; } + } } /// @@ -114,6 +435,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models [Newtonsoft.Json.JsonProperty("placeholder")] [System.Text.Json.Serialization.JsonPropertyName("placeholder")] public string? Placeholder { get; set; } + + /// + /// 获取或设置问题的额外设置。 + /// + [Newtonsoft.Json.JsonProperty("question_extend_setting")] + [System.Text.Json.Serialization.JsonPropertyName("question_extend_setting")] + public Types.ExtendedSettings? ExtendedSettings { get; set; } } public class Settings diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/Form/CgibinWedocGetFormAnswerResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/Form/CgibinWedocGetFormAnswerResponse.cs index fcb1d54e..15ebc96d 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/Form/CgibinWedocGetFormAnswerResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/Form/CgibinWedocGetFormAnswerResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Work.Models +namespace SKIT.FlurlHttpClient.Wechat.Work.Models { /// /// 表示 [POST] /cgi-bin/wedoc/get_form_answer 接口的响应。 @@ -35,7 +35,7 @@ { public static class Types { - public class ExtendedFileReply + public class FileReply { /// /// 获取或设置文件 ID。 @@ -52,7 +52,7 @@ public string Name { get; set; } = default!; } - public class ExtendedOptionReply + public class OptionReply { /// /// 获取或设置额外回答选项键。 @@ -68,6 +68,97 @@ [System.Text.Json.Serialization.JsonPropertyName("extend_text")] public string Text { get; set; } = default!; } + + public class DurationReply + { + /// + /// 获取或设置开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("begin_time")] + [System.Text.Json.Serialization.JsonPropertyName("begin_time")] + public long BeginTimestamp { get; set; } + + /// + /// 获取或设置结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + public long EndTimestamp { get; set; } + + /// + /// 获取或设置时间刻度。 + /// + [Newtonsoft.Json.JsonProperty("time_scale")] + [System.Text.Json.Serialization.JsonPropertyName("time_scale")] + public int TimeScale { get; set; } + + /// + /// 获取或设置单位换算。 + /// + [Newtonsoft.Json.JsonProperty("day_range")] + [System.Text.Json.Serialization.JsonPropertyName("day_range")] + public int DayRange { get; set; } + + /// + /// 获取或设置天数。 + /// + [Newtonsoft.Json.JsonProperty("days")] + [System.Text.Json.Serialization.JsonPropertyName("days")] + public double? Days { get; set; } + + /// + /// 获取或设置小时数。 + /// + [Newtonsoft.Json.JsonProperty("hours")] + [System.Text.Json.Serialization.JsonPropertyName("hours")] + public double? Hours { get; set; } + } + + public class DepartmentReply + { + public static class Types + { + public class Department + { + /// + /// 获取或设置部门 ID。 + /// + [Newtonsoft.Json.JsonProperty("department_id")] + [System.Text.Json.Serialization.JsonPropertyName("department_id")] + public long DepartmentId { get; set; } + } + } + + /// + /// 获取或设置部门列表。 + /// + [Newtonsoft.Json.JsonProperty("list")] + [System.Text.Json.Serialization.JsonPropertyName("list")] + public Types.Department[] DepartmentList { get; set; } = default!; + } + + public class MemberReply + { + public static class Types + { + public class Member + { + /// + /// 获取或设置成员账号。 + /// + [Newtonsoft.Json.JsonProperty("userid")] + [System.Text.Json.Serialization.JsonPropertyName("userid")] + public string UserId { get; set; } = default!; + } + } + + /// + /// 获取或设置成员列表。 + /// + [Newtonsoft.Json.JsonProperty("list")] + [System.Text.Json.Serialization.JsonPropertyName("list")] + public Types.Member[] MemberList { get; set; } = default!; + } } /// @@ -82,28 +173,49 @@ /// [Newtonsoft.Json.JsonProperty("text_reply")] [System.Text.Json.Serialization.JsonPropertyName("text_reply")] - public string? ReplyText { get; set; } + public string? TextReply { get; set; } /// /// 获取或设置回答选项键列表。 /// [Newtonsoft.Json.JsonProperty("option_reply")] [System.Text.Json.Serialization.JsonPropertyName("option_reply")] - public int[]? ReplyOptionKeyList { get; set; } - - /// - /// 获取或设置回答文件列表。 - /// - [Newtonsoft.Json.JsonProperty("file_extend_reply")] - [System.Text.Json.Serialization.JsonPropertyName("file_extend_reply")] - public Types.ExtendedFileReply[]? ReplyExtendedFileReply { get; set; } + public int[]? OptionReplyKeyList { get; set; } /// /// 获取或设置回答额外选项列表。 /// [Newtonsoft.Json.JsonProperty("option_extend_reply")] [System.Text.Json.Serialization.JsonPropertyName("option_extend_reply")] - public Types.ExtendedOptionReply[]? ReplyExtendedOptionList { get; set; } + public Types.OptionReply[]? OptionReplyList { get; set; } + + /// + /// 获取或设置回答文件列表。 + /// + [Newtonsoft.Json.JsonProperty("file_extend_reply")] + [System.Text.Json.Serialization.JsonPropertyName("file_extend_reply")] + public Types.FileReply[]? FileReply { get; set; } + + /// + /// 获取或设置回答时长信息。 + /// + [Newtonsoft.Json.JsonProperty("duration_reply")] + [System.Text.Json.Serialization.JsonPropertyName("duration_reply")] + public Types.DurationReply? DurationReply { get; set; } + + /// + /// 获取或设置回答部门信息。 + /// + [Newtonsoft.Json.JsonProperty("department_reply")] + [System.Text.Json.Serialization.JsonPropertyName("department_reply")] + public Types.DepartmentReply? DepartmentReply { get; set; } + + /// + /// 获取或设置回答成员信息。 + /// + [Newtonsoft.Json.JsonProperty("member_reply")] + [System.Text.Json.Serialization.JsonPropertyName("member_reply")] + public Types.MemberReply? MemberReply { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/Form/CgibinWedocGetFormInfoResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/Form/CgibinWedocGetFormInfoResponse.cs index d62fec48..5efe9b3a 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/Form/CgibinWedocGetFormInfoResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/Form/CgibinWedocGetFormInfoResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Work.Models +namespace SKIT.FlurlHttpClient.Wechat.Work.Models { /// /// 表示 [POST] /cgi-bin/wedoc/get_form_info 接口的响应。 @@ -48,6 +48,10 @@ [System.Text.Json.Serialization.JsonPropertyName("status")] public int Status { get; set; } } + + public class ExtendedSettings : CgibinWedocCreateFormRequest.Types.Form.Types.QuestionItem.Types.ExtendedSettings + { + } } /// @@ -112,6 +116,13 @@ [Newtonsoft.Json.JsonProperty("placeholder")] [System.Text.Json.Serialization.JsonPropertyName("placeholder")] public string? Placeholder { get; set; } + + /// + /// 获取或设置问题的额外设置。 + /// + [Newtonsoft.Json.JsonProperty("question_extend_setting")] + [System.Text.Json.Serialization.JsonPropertyName("question_extend_setting")] + public Types.ExtendedSettings? ExtendedSettings { get; set; } } public class Settings diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/Form/CgibinWedocModifyFormRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/Form/CgibinWedocModifyFormRequest.cs index 186ffb4e..0a2a35f7 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/Form/CgibinWedocModifyFormRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/Form/CgibinWedocModifyFormRequest.cs @@ -56,6 +56,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models { } } + /// /// 获取或设置填写范围信息。 /// diff --git a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinWedoc/Form/CgibinWedocCreateFormRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinWedoc/Form/CgibinWedocCreateFormRequest.json index bce156ab..2d41d6cf 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinWedoc/Form/CgibinWedocCreateFormRequest.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinWedoc/Form/CgibinWedocCreateFormRequest.json @@ -22,7 +22,8 @@ "status": 1 } ], - "placeholder": "PLACEHOLDER" + "placeholder": "PLACEHOLDER", + "question_extend_setting": {} } ] }, diff --git a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinWedoc/Form/CgibinWedocGetFormAnswerResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinWedoc/Form/CgibinWedocGetFormAnswerResponse.json index 3f3d98d4..1d1f16f7 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinWedoc/Form/CgibinWedocGetFormAnswerResponse.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinWedoc/Form/CgibinWedocGetFormAnswerResponse.json @@ -1,4 +1,4 @@ -{ +{ "errcode": 0, "errmsg": "ok", "answer": { @@ -16,7 +16,9 @@ }, { "question_id": 2, - "option_reply": [2] + "option_reply": [ + 2 + ] }, { "question_id": 3, @@ -45,7 +47,9 @@ }, { "question_id": 8, - "option_reply": [1] + "option_reply": [ + 1 + ] }, { "question_id": 9, @@ -53,17 +57,52 @@ }, { "question_id": 10, - "option_reply": [5] + "option_reply": [ + 5 + ] }, { "question_id": 11, - "option_reply": [3], + "option_reply": [ + 3 + ], "option_extend_reply": [ { "option_reply": 3, "extend_text": "test" } ] + }, + { + "question_id": 12, + "department_reply": { + "list": [ + { + "department_id": 3 + } + ] + } + }, + { + "question_id": 13, + "member_reply": { + "list": [ + { + "userid": "zhangsan" + } + ] + } + }, + { + "question_id": 14, + "duration_reply": { + "begin_time": 1586136317, + "end_time": 1586236317, + "time_scale": 0, + "day_range": 0, + "days": 1.0, + "hours": 2.5 + } } ] }, diff --git a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinWedoc/Form/CgibinWedocGetFormInfoResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinWedoc/Form/CgibinWedocGetFormInfoResponse.json index e0cdc356..f8ef7f65 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinWedoc/Form/CgibinWedocGetFormInfoResponse.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinWedoc/Form/CgibinWedocGetFormInfoResponse.json @@ -1,4 +1,4 @@ -{ +{ "errcode": 0, "errmsg": "ok", "form_info": { diff --git a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinWedoc/Form/CgibinWedocModifyFormRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinWedoc/Form/CgibinWedocModifyFormRequest.json index 3a3cafa8..59cc415d 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinWedoc/Form/CgibinWedocModifyFormRequest.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinWedoc/Form/CgibinWedocModifyFormRequest.json @@ -1,4 +1,4 @@ -{ +{ "oper": 1, "formid": "FORMID", "form_info": { @@ -22,7 +22,8 @@ "status": 1 } ], - "placeholder": "PLACEHOLDER" + "placeholder": "PLACEHOLDER", + "question_extend_setting": {} } ] },