WANG 6 роки тому
батько
коміт
a87b660263

+ 3 - 0
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/core/basic/api/controller/Auth2Controller.java

@@ -22,6 +22,7 @@ import cn.com.qmth.examcloud.core.basic.dao.entity.UserEntity;
 import cn.com.qmth.examcloud.core.basic.service.AuthService;
 import cn.com.qmth.examcloud.core.basic.service.bean.LoginInfo;
 import cn.com.qmth.examcloud.web.support.ControllerSupport;
+import cn.com.qmth.examcloud.web.support.Naked;
 import io.swagger.annotations.ApiOperation;
 
 /**
@@ -50,6 +51,7 @@ public class Auth2Controller extends ControllerSupport {
 	 * @param password
 	 * @return
 	 */
+	@Naked
 	@ApiOperation(value = "登录1", notes = "登录")
 	@PostMapping("/login")
 	public Map<String, Object> login1(@RequestParam String loginName, @RequestParam String password,
@@ -66,6 +68,7 @@ public class Auth2Controller extends ControllerSupport {
 	 * @param password
 	 * @return
 	 */
+	@Naked
 	@ApiOperation(value = "登录2", notes = "登录")
 	@PostMapping("/login/{rootOrgId}")
 	public Map<String, Object> login2(@PathVariable long rootOrgId, @RequestParam String loginName,

+ 6 - 0
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/core/basic/api/controller/AuthController.java

@@ -27,6 +27,7 @@ import cn.com.qmth.examcloud.core.basic.service.bean.LoginInfo;
 import cn.com.qmth.examcloud.web.helpers.GlobalHelper;
 import cn.com.qmth.examcloud.web.redis.RedisClient;
 import cn.com.qmth.examcloud.web.support.ControllerSupport;
+import cn.com.qmth.examcloud.web.support.Naked;
 import cn.com.qmth.examcloud.web.support.StatusResponseX;
 import io.swagger.annotations.ApiOperation;
 
@@ -60,6 +61,7 @@ public class AuthController extends ControllerSupport {
 	@Autowired
 	ImgCodeService imgCodeService;
 
+	@Naked
 	@ApiOperation(value = "登入", notes = "")
 	@PostMapping("login")
 	public Object login(@RequestBody LoginInfo loginInfo, HttpServletRequest request) {
@@ -97,6 +99,7 @@ public class AuthController extends ControllerSupport {
 		authService.logout(user);
 	}
 
+	@Naked
 	@ApiOperation(value = "获取登录用户", notes = "")
 	@PostMapping("getLoginUser")
 	public User getLoginUser(@RequestParam String key, @RequestParam String token) {
@@ -111,6 +114,7 @@ public class AuthController extends ControllerSupport {
 		return authService.getLoginUser(key, token);
 	}
 
+	@Naked
 	@ApiOperation(value = "第三方机构接入", notes = "")
 	@PostMapping("/thirdPartyAccess")
 	public User thirdPartyAccess(HttpServletRequest request, @RequestParam Long orgId,
@@ -123,6 +127,7 @@ public class AuthController extends ControllerSupport {
 		return authService.thirdPartyAccess(orgId, loginName, appId, timestamp, token, realIp);
 	}
 
+	@Naked
 	@ApiOperation(value = "发送验证码", notes = "")
 	@PostMapping("sendVerificationCode4Student")
 	public void sendVerificationCode4Student(@RequestParam(required = true) String phone,
@@ -138,6 +143,7 @@ public class AuthController extends ControllerSupport {
 		smsCodeService.sendSmsCode(phone);
 	}
 
+	@Naked
 	@ApiOperation(value = "发送验证码", notes = "")
 	@PostMapping("/sendVerificationCode")
 	public void sendVerificationCode(@RequestParam String phone) {

+ 4 - 0
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/core/basic/api/controller/OrgController.java

@@ -61,6 +61,7 @@ import cn.com.qmth.examcloud.core.basic.service.impl.OrgServiceImpl;
 import cn.com.qmth.examcloud.web.bootstrap.PropertyHolder;
 import cn.com.qmth.examcloud.web.helpers.GlobalHelper;
 import cn.com.qmth.examcloud.web.support.ControllerSupport;
+import cn.com.qmth.examcloud.web.support.Naked;
 import io.swagger.annotations.ApiOperation;
 
 /**
@@ -287,6 +288,7 @@ public class OrgController extends ControllerSupport {
 	 * @param code
 	 * @return
 	 */
+	@Naked
 	@ApiOperation(value = "查询顶级机构")
 	@GetMapping("getRootOrgByCode")
 	public OrgEntity getRootOrgByCode(@RequestParam("code") String code) {
@@ -581,6 +583,7 @@ public class OrgController extends ControllerSupport {
 		return one.getValue();
 	}
 
+	@Naked
 	@ApiOperation(value = "查询机构单个属性(不鉴权)")
 	@GetMapping("propertyNoSession/{key}")
 	public String getOrgPropertyNoSession(@RequestParam(required = false) Long orgId,
@@ -840,6 +843,7 @@ public class OrgController extends ControllerSupport {
 	 * @param domain
 	 * @throws IOException
 	 */
+	@Naked
 	@ApiOperation(value = "获取logo")
 	@GetMapping("logo")
 	public void getLogo(@RequestParam("domain") String domain, HttpServletResponse response)