forked from rongchao/epmet-cloud-rizhao
2 changed files with 43 additions and 0 deletions
@ -0,0 +1,30 @@ |
|||||
|
package com.epmet.controller; |
||||
|
|
||||
|
import com.epmet.commons.thirdplat.apiservice.jcet.JcetApiService; |
||||
|
import com.epmet.commons.thirdplat.dto.result.jcet.UserInfoResultDTO; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.io.UnsupportedEncodingException; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("sso") |
||||
|
public class SSOLoginController { |
||||
|
|
||||
|
@Autowired |
||||
|
private JcetApiService jcetApiService; |
||||
|
|
||||
|
@PostMapping("login") |
||||
|
public Result login() { |
||||
|
UserInfoResultDTO userInfo = null; |
||||
|
try { |
||||
|
userInfo = jcetApiService.getUserInfoByTicket("wxz"); |
||||
|
} catch (UnsupportedEncodingException e) { |
||||
|
e.printStackTrace(); |
||||
|
} |
||||
|
return new Result().ok(userInfo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
CREATE TABLE `system_message` ( |
||||
|
`ID` varchar(64) NOT NULL COMMENT '主键', |
||||
|
`MSG_TYPE` varchar(32) NOT NULL COMMENT '消息类型。init_customer:客户初始化', |
||||
|
`SEND_APPROACH` varchar(32) NOT NULL COMMENT '消息发送途径', |
||||
|
`CONTENT` varchar(1024) NOT NULL COMMENT '消息内容', |
||||
|
`REVISION` int(11) DEFAULT NULL COMMENT '乐观锁', |
||||
|
`CREATED_BY` varchar(32) NOT NULL COMMENT '创建人(发布消息的人)', |
||||
|
`CREATED_TIME` datetime NOT NULL COMMENT '创建时间', |
||||
|
`UPDATED_BY` varchar(32) NOT NULL COMMENT '更新人', |
||||
|
`UPDATED_TIME` datetime NOT NULL COMMENT '更新时间', |
||||
|
`DEL_FLAG` varchar(1) NOT NULL COMMENT '删除标记 0:未删除,1:已删除', |
||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='系统消息表' |
Loading…
Reference in new issue