fix:System增加接口
This commit is contained in:
parent
5131184b61
commit
e4d27d75d2
|
@ -3,6 +3,7 @@ package org.jeecg.modules.controller;
|
|||
import com.alibaba.fastjson.JSONObject;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.modules.base.entity.postgre.SysUserClient;
|
||||
import org.jeecg.modules.model.SysLoginModel;
|
||||
import org.jeecg.modules.feignclient.SystemClient;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -12,8 +13,8 @@ import javax.servlet.http.HttpServletRequest;
|
|||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("")
|
||||
public class LoginController {
|
||||
@RequestMapping("/sys")
|
||||
public class SystemController {
|
||||
|
||||
@Autowired
|
||||
private SystemClient systemClient;
|
||||
|
@ -29,6 +30,11 @@ public class LoginController {
|
|||
return systemClient.mLogin(sysLoginModel);
|
||||
}
|
||||
|
||||
@PostMapping("/userClient/saveOrUpdateClient")
|
||||
public void saveOrUpdateClient(@RequestBody SysUserClient sysUserClient) {
|
||||
systemClient.saveOrUpdateClient(sysUserClient);
|
||||
}
|
||||
|
||||
/**
|
||||
* 退出登录
|
||||
* @param request
|
|
@ -2,12 +2,14 @@ package org.jeecg.modules.feignclient;
|
|||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.modules.base.entity.postgre.SysUserClient;
|
||||
import org.jeecg.modules.model.SysLoginModel;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
@ -23,6 +25,13 @@ public interface SystemClient {
|
|||
@GetMapping("/mLogin")
|
||||
Result<JSONObject> mLogin(SysLoginModel sysLoginModel);
|
||||
|
||||
/**
|
||||
* 图形验证码
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/checkCaptcha")
|
||||
void saveOrUpdateClient(SysUserClient sysUserClient);
|
||||
|
||||
/**
|
||||
* 登出
|
||||
* @return
|
||||
|
|
Loading…
Reference in New Issue
Block a user