fea: 完成添加用户,查询用户,鉴权,和添加管理员API

This commit is contained in:
cancerai committed 2026-10-11 21:58:58 +08:00
1 parent 861a689759
commit b43c31a12b
6 files changed
+236 -74

No files matched your search

+5 -1
View File
@@ -2,7 +2,7 @@ drop table if exists user;
drop table if exists admin;
create table user(
id varchar(100) primary key not null,
id integer primary key not null auto_increment,
name varchar(50) not null,
passwd varchar(120),
create_time datetime not null,
@@ -14,3 +14,7 @@ create table admin(
name varchar(50) not null,
passwd varchar(120) not null
);
-- 默认管理员账号 "admin",密码 "admin"
-- 仅开发,测试环境用
-- insert into admin(name, passwd) values("admin", "$argon2id$v=19$m=65536,t=2,p=1$B7OnAywQYuZSYvu8twgQOo0VRrZjJBIMqezakOjkWgU$+0wIE/FR4rDBVQzAp+l7u1REi8/+tneNzSHhs2dd+n4");