add: 用户鉴权和查询所有用户接口

This commit is contained in:
cancerai committed 2026-10-11 18:01:11 +08:00
commit 861a689759
10 files changed
+349

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
drop table if exists user;
drop table if exists admin;
create table user(
id varchar(100) primary key not null,
name varchar(50) not null,
passwd varchar(120),
create_time datetime not null,
update_time datetime
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- 大小写敏感
create table admin(
id integer primary key auto_increment,
name varchar(50) not null,
passwd varchar(120) not null
);