| | |
| | | package com.gkhy.exam.institutionalaccess.controller; |
| | | |
| | | import com.alibaba.fastjson2.JSONObject; |
| | | import com.alibaba.fastjson2.TypeReference; |
| | | import com.gkhy.exam.institutionalaccess.enums.*; |
| | | import com.gkhy.exam.institutionalaccess.model.req.*; |
| | | import com.gkhy.exam.institutionalaccess.model.resp.ThPlatformStudentRespDTO; |
| | | import com.gkhy.exam.institutionalaccess.service.TripartiteInterfaceService; |
| | | import com.ruoyi.common.annotation.RepeatedClick; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.signature.AESUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | |
| | | @RequestMapping("/gov-server/receive") |
| | |
| | | thBatchReqDTO.setBatchName("第一期2024"); |
| | | thBatchReqDTO.setTrainOrgName("测试机构"); |
| | | thBatchReqDTO.setHaveExam(HaveExam.YES.getStatus()); |
| | | thBatchReqDTO.setStatus(OpenStatus.NO.getStatus()); |
| | | thBatchReqDTO.setStatus(OpenStatus.START.getStatus()); |
| | | thBatchReqDTO.setActualEndTime(LocalDateTime.now()); |
| | | thBatchReqDTO.setActualStartTime(null); |
| | | thBatchReqDTO.setExpectEndTime(LocalDateTime.now()); |
| | | thBatchReqDTO.setExpectStartTime(LocalDateTime.now()); |
| | | thBatchReqDTO.setSubjectCode("201"); |
| | | thBatchReqDTO.setDelFlag((byte)0); |
| | | thBatchReqDTO.setBatchLessonNum(new BigDecimal(40)); |
| | | List<ThBatchCourseReqDTO> courseList = new ArrayList<>(); |
| | |
| | | /** |
| | | * |
| | | */ |
| | | /*public static void main(String[] args) { |
| | | public static void main(String[] args) { |
| | | List<ThStudyDetailReqDTO> list = new ArrayList<>(); |
| | | ThStudyDetailReqDTO thStudyDetailReqDTO = new ThStudyDetailReqDTO(); |
| | | thStudyDetailReqDTO.setUuid("8c061cb1-8560-43b8-abe4-04ae8e763f59"); |
| | |
| | | thStudyDetailReqDTO.setChapterUuid("d5cd3b26-be11-4ffe-8a34-283c49c85253"); |
| | | thStudyDetailReqDTO.setDuration(4567l); |
| | | thStudyDetailReqDTO.setTrainOrgName("测试"); |
| | | thStudyDetailReqDTO.setCompleteStatus(StudentFinishStatus.YES.getStatus()); |
| | | thStudyDetailReqDTO.setStartTime(LocalDateTime.now()); |
| | | thStudyDetailReqDTO.setFinishTime(LocalDateTime.now()); |
| | | thStudyDetailReqDTO.setVideoUrl("hhtht"); |
| | |
| | | String encrypt = AESUtils.encrypt(jsonString); |
| | | System.out.println(encrypt); |
| | | |
| | | }*/ |
| | | } |
| | | /* public static void main(String[] args) { |
| | | String decrypt = AESUtils.decrypt(""); |
| | | String decrypt = AESUtils.decrypt("BhSazFtvofCRelDGgefpPEYzIR9eUed3RV52ThGuzib1FyirNEW8Dri7WBJBKDKAn8+bNbL2HydRalakvoNA6oP/AM/sYpxDvO4pwaJPvYkow8crP8qPcB+vnDoJRCpvChl6RIBc4+oMONh6gsX6FA=="); |
| | | ThPlatformStudentRespDTO studentRespDTO = JSONObject.parseObject(decrypt, new TypeReference<ThPlatformStudentRespDTO>() {}); |
| | | System.out.println(decrypt); |
| | | System.out.println(studentRespDTO); |
| | | }*/ |
| | | } |
| | | |