|
@@ -1,15 +1,18 @@
|
|
|
package com.citupro.module.menduner.flames.controller.app;
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
-
|
|
|
import com.citu.framework.common.pojo.CommonResult;
|
|
|
+import com.citu.framework.security.core.util.SecurityFrameworkUtils;
|
|
|
import com.citupro.module.menduner.flames.controller.base.reqvo.system.user.auth.UserAuthRecordIdReqVo;
|
|
|
import com.citupro.module.menduner.flames.controller.base.reqvo.system.user.auth.UserAuthRecordListReqVo;
|
|
|
import com.citupro.module.menduner.flames.controller.base.vo.system.UserAuthRecordInfoVo;
|
|
|
import com.citupro.module.menduner.flames.dal.mysql.UserAuthRecord;
|
|
|
import com.citupro.module.menduner.flames.service.UserAuthRecordService;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
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;
|
|
|
|
|
|
/**
|
|
|
* @author auto
|
|
@@ -20,7 +23,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
*/
|
|
|
@RequestMapping("/flames")
|
|
|
@RestController
|
|
|
-public class UserAuthRecordController {
|
|
|
+public class UserAuthRecordController {
|
|
|
@SuppressWarnings("all")
|
|
|
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(UserAuthRecordController.class);
|
|
|
@Autowired
|
|
@@ -52,6 +55,18 @@ public class UserAuthRecordController {
|
|
|
return CommonResult.success(userAuthRecordService.getById(idReqVo.getUserAuthRecordId()));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @return Result
|
|
|
+ * @eo.name getSchoolInformation
|
|
|
+ * @eo.url /school/information
|
|
|
+ * @eo.method post
|
|
|
+ * @eo.request-type formdata
|
|
|
+ */
|
|
|
+ @PostMapping("/user/auth/record/get")
|
|
|
+ public CommonResult getUserAuthRecordBySchoolId() {
|
|
|
+ return CommonResult.success(userAuthRecordService.getUserAuthRecordById(SecurityFrameworkUtils.getLoginUserId()));
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @param userAuthRecord
|
|
|
* @return R
|
|
@@ -68,7 +83,7 @@ public class UserAuthRecordController {
|
|
|
/**
|
|
|
* @param idReqVo
|
|
|
* @return R
|
|
|
- * @eo.name 通过id删除
|
|
|
+ * @eo.name 通过id删除
|
|
|
* @eo.url /user/auth/record/del
|
|
|
* @eo.method post
|
|
|
* @eo.request-type json
|