Commit 8cb23f5a authored by WeiWei's avatar WeiWei

测试domain

parent 5f0823e9
...@@ -7,7 +7,10 @@ import cn.quantgroup.cashloanflowboss.component.security.annotiation.Security; ...@@ -7,7 +7,10 @@ import cn.quantgroup.cashloanflowboss.component.security.annotiation.Security;
import cn.quantgroup.cashloanflowboss.core.base.Result; import cn.quantgroup.cashloanflowboss.core.base.Result;
import cn.quantgroup.cashloanflowboss.core.dictionary.ApplicationStatus; import cn.quantgroup.cashloanflowboss.core.dictionary.ApplicationStatus;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import javax.validation.Valid; import javax.validation.Valid;
...@@ -26,7 +29,6 @@ public class LogController { ...@@ -26,7 +29,6 @@ public class LogController {
* @param loginFormModel * @param loginFormModel
* @return * @return
*/ */
@CrossOrigin(allowCredentials = "true")
@PostMapping("/login") @PostMapping("/login")
public Result<Boolean> login(@RequestBody @Valid LoginFormModel loginFormModel) { public Result<Boolean> login(@RequestBody @Valid LoginFormModel loginFormModel) {
return new Result<>(ApplicationStatus.SUCCESS, this.logService.login(loginFormModel.getUsername(), loginFormModel.getPassword())); return new Result<>(ApplicationStatus.SUCCESS, this.logService.login(loginFormModel.getUsername(), loginFormModel.getPassword()));
...@@ -37,7 +39,6 @@ public class LogController { ...@@ -37,7 +39,6 @@ public class LogController {
* *
* @return * @return
*/ */
@CrossOrigin(allowCredentials = "true")
@DeleteMapping("/logout") @DeleteMapping("/logout")
@Security(authorityId = "Log.logout", authorities = Authority.READ) @Security(authorityId = "Log.logout", authorities = Authority.READ)
public Result<Boolean> logout() { public Result<Boolean> logout() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment