当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
18 Star 28 Fork 8

电霸儿 / startpoint
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

startpoint

Build Status Codacy Badge License

startpoint是一个身份系统,提供用户、树形结构组、token等API。

StartpointServer(目录结构)

|--src.main.java(服务器代码)
	|--StartpointServer.properties---------------配置文件(需要修改)
	|--generatorConfig.xml--------------------mybatis自动生成配置文件(重新生成时,需要修改)
	|--org.startpoint
		|--server.Expand.java-------------------扩展启动类
		|--plugin.PaginationPlugin.java-------mybatis自动生成配置文件启动类
		
|--protobuf(消息包生成工具)
|--WebContent
	|--index.html(所有API示例,需要修改url)
	|--js(所有API示例依赖js)
	|--html(所有API示例依赖html)

接口调用界面示例

获取admintoken

接口调用界面示例

创建顶级组

接口调用界面示例

创建归属于组的用户

接口调用界面示例

打版本:在项目根目录下,执行

ant

推荐环境:

快捷部署 https://github.com/dianbaer/deployment-server

jdk-8u121

apache-tomcat-8.5.12

MariaDB-10.1.22

CentOS-7-1611

发布项目:

1、安装数据库

create database startpoint

source ****/startpoint.sql

2、将StartpointConfig放入服务器某个路径,例如

/home/StartpointConfig

3、将StartpointServer.properties放入tomcat根目录下,例如

/home/tomcat/StartpointServer.properties

并修改config_dir对应的StartpointConfig路径

4、将StartpointServer.war放入tomcat/webapps,例如

/home/tomcat/webapps/StartpointServer.war

startpoint提供的API功能(除了获取token接口请求外,其他接口需要传admintoken):

获取admintoken示例:

var data = {
	'hOpCode': '20',
	'userName': 'admin',
	'userPassword': '123456'
};
var header = [];
header["hOpCode"] = "20";
var httpClient = new juggle.HttpClient();
httpClient.send(data, "http://localhost:8080/StartpointServer/s", header);
httpClient.addEventListener(juggle.httpEventType.SUCCESS, adminSuccess, this);
httpClient.addEventListener(juggle.httpEventType.ERROR, adminError, this);

1、用户组API(树形结构):

创建、修改、获取、删除用户组。
获取用户组列表。

2、用户API:

创建、修改、获取用户。
获取用户列表。
根据邮箱获取用户、获取用户头像。
检查用户名、手机是否存在。

3、tokenAPI:

登录通过用户名密码获取token
更新token
删除token

java服务器基于grain

依赖以下库,共(1841行,学习成本极低)

grain-httpserver.jar(1318行)
grain-log.jar(111行)
grain-threadkeylock.jar(364行)
grain-mariadb.jar(48行)

github:

https://github.com/dianbaer/grain

码云:

https://gitee.com/dianbaer/grain

js客户端基于juggle

最精简依赖以下库,共(653行,学习成本极低)

juggle-help.js(33行)
juggle-event.js(256行)
juggle-http.js(99行)
juggle-mv.js(104行)
juggle-resource.js(105行)
juggle-module.js(56行)

github:

https://github.com/dianbaer/juggle

码云:

https://gitee.com/dianbaer/basic

MIT License Copyright (c) 2017 电霸儿 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

startpoint是一个身份系统,提供用户、树形结构组、token等API。 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/dianbaer/startpoint.git
git@gitee.com:dianbaer/startpoint.git
dianbaer
startpoint
startpoint
master

搜索帮助