基于maven构建
数据库配置在./src/main/resources/application.properties
第一次运行需要将 spring.jpa.hibernate.ddl-auto 设置成 create
运行代码命令如下
mvn package
cd target
java -jar gs-rest-service-0.1.0.jar
一开始没有admin账号,需要自己去改数据库加或者跑以下代码
INSERT INTO `capital_account_banker` (`id`, `password`, `status`) VALUES
('admin', '21232f297a57a5a743894a0e4a801fc3', '0');
默认帐号密码都是admin(密码存储时加密)
example:
localhost:8080/banker_login?user_id=zfx&user_password=zfx&remember_status=0
8080是端口号,根据实际命令行显示得来
-
管理员登陆
-
Input:
id password remember_status
-
Output:
status message
-
管理员是否已经登陆
-
Input:
-
Output:
status message
-
通过用户account_id获取用户信息
-
Input:
account_id
-
Output:
status user(password="")
-
通过用户account_id获取个人用户信息
-
Input:
account_id
-
Output:
account_id name gender id_num address job degree organization phone_num agency agent_id_num
-
通过用户account_id获取个人法人信息
-
Input:
account_id
-
Output:
account_id legal_num license_num legal_name legal_id_num legal_address legal_phone authorize_name authorize_id_num authorize_address authorize_phone
-
Input:
user_id login_pwd remember_status
-
Output:
status message
-
Input:
-
Output:
status message
-
Input:
login_pwd old_login_pwd
-
Output:
status message
-
Input:
-
Output:
status message
-
Input:
number
-
Output:
status message
-
Input:
user_id id login_pwd securities_id
-
Output:
status message
-
Input:
user_id
-
Output:
status message
-
Input:
user_id
-
Output:
status message
-
Input:
user_id
-
Output:
status message
-
Input:
user_id
-
Output:
user_id securities_id login_pwd user_right status fund id
-
Input:
number
-
Output: status message
-
Input:
-
Output:
status message