This commit is contained in:
2026-04-29 14:58:02 +08:00
parent e729f9bd31
commit b98c66ca21
370 changed files with 55094 additions and 0 deletions
@@ -0,0 +1,3 @@
test.db1:
jdbcUrl: "jdbc:sqlite:D:/cyynote.db"
driverClassName: "org.sqlite.JDBC"
@@ -0,0 +1,4 @@
test.db1:
jdbcUrl: "jdbc:sqlite:/opt/db/cyynote.db"
driverClassName: "org.sqlite.JDBC"
+23
View File
@@ -0,0 +1,23 @@
server.port: 8080
solon.app:
name: demoapp
group: demo
# 基于 header 传(适合接口开发,每次会自动输出[可改为手动])
solon.env: dev
solon.output.meta: 1
server.session:
timeout: 7200 #单位秒;(可不配,默认:7200
state:
jwt:
name: TOKEN #变量名;(可不配,默认:TOKEN
secret: "E3F9N2kRDQf55pnJPnFoo5+ylKmZQ7AXmWeOVPKbEd8=" #密钥(使用 JwtUtils.createKey() 生成);(可不配,默认:xxx)
prefix: Bearer #令牌前缀(可不配,默认:空)
allowExpire: true #充许超时;(可不配,默认:true);false,则token一直有效
allowAutoIssue: true #充许自动输出;(可不配,默认:true);flase,则不向header 或 cookie 设置值(由用户手动控制)
allowUseHeader: true #充许使用Header传递;(可不配,默认:使用 Cookie 传递);true,则使用 header 传递
@@ -0,0 +1,53 @@
CREATE TABLE `user` (
id INTEGER PRIMARY KEY AUTOINCREMENT,
email TEXT,
password TEXT,
username TEXT,
role TEXT,
token TEXT,
logintime TEXT
);
CREATE TABLE `note` (
id INTEGER PRIMARY KEY AUTOINCREMENT,
pid INTEGER,
title TEXT,
context TEXT,
conjson TEXT,
createtime TEXT,
updatetime TEXT,
viewtime TEXT,
userid INTEGER,
username TEXT,
flag INTEGER DEFAULT 1
);
CREATE TABLE `history` (
id INTEGER PRIMARY KEY AUTOINCREMENT,
nid INTEGER,
title TEXT,
context TEXT,
conjson TEXT,
createtime TEXT,
userid INTEGER,
username TEXT
);
CREATE TABLE appx (
app_id INTEGER PRIMARY KEY AUTOINCREMENT,
app_key TEXT,
akey TEXT,
ugroup_id INTEGER DEFAULT 0,
agroup_id INTEGER,
name TEXT,
note TEXT,
ar_is_setting INTEGER NOT NULL DEFAULT 0,
ar_is_examine INTEGER NOT NULL DEFAULT 0,
ar_examine_ver INTEGER NOT NULL DEFAULT 0,
log_fulltime TEXT
);
INSERT INTO `user` VALUES ('1', 'aaaaaaaaa', 'cyy123', 'admin', 'admin','','');
INSERT INTO `user` VALUES ('2', 'aaaaaaaaa', 'test', 'test', 'test','','');
INSERT INTO `note` VALUES ('1', '0', 'test', 'test', 'test','','','','1','1','1');
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8" ?>
<mapper namespace="webapp.dso"
db="db">
<sql id="appx_get" return="int" remarks="随便取条数据的ID">
select app_id from appx limit 1
</sql>
<sql id="appx_get0" return="Integer" remarks="随便取条数据的ID">
<![CDATA[
select app_id from appx where app_id < 1 limit 1
]]>
</sql>
<sql id="appx_get2" return="AppxModel" remarks="根据id取条数据">
select * from appx where app_id = @{app_id:int} limit 1
</sql>
<sql id="appx_getlist" return="List[AppxModel]">
select * from appx where app_id > @{app_id:int} order by app_id asc limit 4
</sql>
<sql id="appx_getids" return="List[Integer]">
select app_id from appx limit 4
</sql>
<sql id="appx_getids2" return="Set[Integer]">
select app_id from appx limit 4
</sql>
</mapper>