|
@@ -604,6 +604,12 @@ namespace TEAMModelOS.Controllers.Common
|
|
|
string creatorEmail = (request.TryGetProperty("creatorEmail", out JsonElement _creatorEmail)) ? _creatorEmail.ToString() : string.Empty;
|
|
|
string schoolId = (request.TryGetProperty("schoolId", out JsonElement _schoolId)) ? _schoolId.ToString() : string.Empty;
|
|
|
string schoolName = (request.TryGetProperty("schoolName", out JsonElement _schoolName)) ? _schoolName.ToString() : string.Empty;
|
|
|
+ string countryId = (request.TryGetProperty("countryId", out JsonElement _countryId)) ? _countryId.ToString() : string.Empty;
|
|
|
+ string countryName = (request.TryGetProperty("countryName", out JsonElement _countryName)) ? _countryName.ToString() : string.Empty;
|
|
|
+ string provinceId = (request.TryGetProperty("provinceId", out JsonElement _provinceId)) ? _provinceId.ToString() : string.Empty;
|
|
|
+ string provinceName = (request.TryGetProperty("provinceName", out JsonElement _provinceName)) ? _provinceName.ToString() : string.Empty;
|
|
|
+ string cityId = (request.TryGetProperty("cityId", out JsonElement _cityId)) ? _cityId.ToString() : string.Empty;
|
|
|
+ string cityName = (request.TryGetProperty("cityName", out JsonElement _cityName)) ? _cityName.ToString() : string.Empty;
|
|
|
string scope = (request.TryGetProperty("scope", out JsonElement _scope)) ? _scope.ToString() : string.Empty;
|
|
|
List<JointEventGroupBase.JointEventGroupCourse> courseLists = (request.TryGetProperty("courseLists", out JsonElement _courseLists)) ? _courseLists.ToObject<List<JointEventGroupBase.JointEventGroupCourse>>() : null;
|
|
|
if (string.IsNullOrWhiteSpace(jointEventId) || string.IsNullOrWhiteSpace(jointGroupId) || string.IsNullOrWhiteSpace(creatorId) || courseLists == null || string.IsNullOrWhiteSpace(scope))
|
|
@@ -646,6 +652,12 @@ namespace TEAMModelOS.Controllers.Common
|
|
|
jointCourse.creatorEmail = creatorEmail;
|
|
|
jointCourse.schoolId = schoolId;
|
|
|
jointCourse.schoolName = schoolName;
|
|
|
+ jointCourse.countryId = countryId;
|
|
|
+ jointCourse.countryName = countryName;
|
|
|
+ jointCourse.provinceId = provinceId;
|
|
|
+ jointCourse.provinceName = provinceName;
|
|
|
+ jointCourse.cityId = cityId;
|
|
|
+ jointCourse.cityName = cityName;
|
|
|
jointCourse.createTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
|
|
|
}
|
|
|
//修改
|
|
@@ -1350,6 +1362,12 @@ namespace TEAMModelOS.Controllers.Common
|
|
|
public string schoolId { get; set; } //老師教育雲綁定的學校ID
|
|
|
public string schoolName { get; set; } //老師教育雲綁定的學校名稱
|
|
|
public string periodId { get; set; } //老師個人課程時為null
|
|
|
+ public string countryId { get; set; }
|
|
|
+ public string countryName { get; set; }
|
|
|
+ public string provinceId { get; set; }
|
|
|
+ public string provinceName { get; set; }
|
|
|
+ public string cityId { get; set; }
|
|
|
+ public string cityName { get; set; }
|
|
|
public List<JointEventGroupCourseDto> courseLists { get; set; } = new();
|
|
|
public long createTime { get; set; }
|
|
|
public class JointEventGroupCourseDto
|