新增用户注册/登录

This commit is contained in:
2018-01-08 12:49:07 +08:00
parent 4c7a0d6e91
commit 84b81cf0ac
33 changed files with 1358 additions and 72 deletions

View File

@@ -1,7 +1,7 @@
#------------------------------------------------#
jdbcUrl=jdbc\:mysql\://dbserver\:3306/jfly?useUnicode\=true&characterEncoding\=utf8&useSSL\=false
user=root
password=*hello9796!
user=guest
password=hello
redis.cache_name=jfly
redis.database=1

View File

@@ -1,3 +1,19 @@
#sql("user.list")
SELECT * FROM `user`
SELECT * FROM `user` u
WHERE u.status != -1
#if(userId)
AND u.`userId` = #(userId)
#end
#if(username)
AND u.`username` = '#(username)'
#end
#if(email)
AND u.`email` = '#(email)'
#end
#if(order)
ORDER BY #(order)
#else
ORDER BY u.createTime DESC
#end
#end