171 Unstar Star 561 Fork 231

vakinge / oneplatform

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
dev-guide.md 995 Bytes
Copy Edit Web IDE Raw Blame History
vakinge authored 2018-06-02 16:46 . 移除shiro

模块开发指南

初始化模块

在线生成模块

获取登录用户上下文

//获取登录用户,未登录为空
LoginSession session = LoginContext.getLoginSession();
//获取并验证是否登录
LoginSession session = LoginContext.getAndValidateLoginUser();
//获取当前登录用户
Integer LoginContext.getLoginUserId();

统一日志记录

  • 默认所有POST请求都会记录操作日志
  • 通过@LogOption注解自定义是否记录日志
	@LogOption(skip=false)
	public WrapperResponse<String> process(@RequestBody OrderProcessParam param) {
		LoginUserInfo operator = LoginContext.getAndValidateLoginUser();
		demoService.processOrder(operator, param);
		return new WrapperResponse<>();
	}

异步消息(跨模块数据传递)

参考文档

全局事件通知

待规划

贡献模块

通过fork-pull方式贡献

Comment ( 0 )

Sign in for post a comment

Java
1
https://git.oschina.net/vakinge/oneplatform.git
git@git.oschina.net:vakinge/oneplatform.git
vakinge
oneplatform
oneplatform
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542