parent
3c6e6f13a4
commit
5bac710287
@ -1,45 +0,0 @@ |
||||
<!DOCTYPE html> |
||||
<html lang="zh"> |
||||
|
||||
<head> |
||||
<meta charset="utf-8"> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1"> |
||||
<title>欢迎 - LittleBusters</title> |
||||
|
||||
<link rel="stylesheet" type="text/css" href="css\welcomepage.css"> |
||||
<script src="js/welcomepage_message.js"></script> |
||||
<!--[if IE]><script>alert("别用IE浏览器啦,快换一个吧!");</script><![endif]--> |
||||
|
||||
</head> |
||||
|
||||
<!-- 前端不擅长,逻辑做的很简单,见谅 ( ̄﹏ ̄;)--> |
||||
|
||||
<body lang="ZH-CN"> |
||||
<div id="content"> |
||||
<div id="background"></div> |
||||
<div id="dialogMask" onclick="closeDialog()"></div> |
||||
<div class="login-box"> |
||||
<div class="login-box-title">登录/注册</div> |
||||
|
||||
<div class="input-field-group"> |
||||
<div class="input-field"> |
||||
<input id="username" type="text" autocomplete="username" placeholder="用户名/UID"> |
||||
</div> |
||||
<div class="input-field"> |
||||
<input id="passwd" type="password" autocomplete="current-password" placeholder="密码"> |
||||
</div> |
||||
</div> |
||||
<div class="operator-box"> |
||||
<button class="big-button" type="submit" id="login-botton" onclick="checkInputCorrect()">登录</button> |
||||
<div class="rl-layout-box"> |
||||
<a class="small-link" onclick="forgotPasswd()">不记得密码了?</a> |
||||
<a class="small-link">没有账号?注册一个!</a> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
</div> |
||||
|
||||
</body> |
||||
|
||||
</html> |
@ -1,4 +0,0 @@ |
||||
package me.lensfrex.littlebusters.api.v1.utils.key; |
||||
|
||||
public class KeyManager { |
||||
} |
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.beans; |
||||
package me.lensfrex.trailblazer.api.v1.beans; |
||||
|
||||
public class ProfileItem { |
||||
private String itemName; |
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.beans.requests; |
||||
package me.lensfrex.trailblazer.api.v1.beans.requests; |
||||
|
||||
import com.google.gson.annotations.SerializedName; |
||||
|
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.beans.requests; |
||||
package me.lensfrex.trailblazer.api.v1.beans.requests; |
||||
|
||||
import com.google.gson.annotations.SerializedName; |
||||
|
@ -1,6 +1,6 @@ |
||||
package me.lensfrex.littlebusters.api.v1.beans.responses; |
||||
package me.lensfrex.trailblazer.api.v1.beans.responses; |
||||
|
||||
import me.lensfrex.littlebusters.api.v1.beans.ProfileItem; |
||||
import me.lensfrex.trailblazer.api.v1.beans.ProfileItem; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.List; |
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.beans.responses; |
||||
package me.lensfrex.trailblazer.api.v1.beans.responses; |
||||
|
||||
import com.google.gson.annotations.SerializedName; |
||||
|
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.beans.responses.general; |
||||
package me.lensfrex.trailblazer.api.v1.beans.responses.general; |
||||
|
||||
/** |
||||
* 错误响应类。 |
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.beans.responses.general; |
||||
package me.lensfrex.trailblazer.api.v1.beans.responses.general; |
||||
|
||||
import com.google.gson.annotations.SerializedName; |
||||
|
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.beans.responses.general; |
||||
package me.lensfrex.trailblazer.api.v1.beans.responses.general; |
||||
|
||||
public class ResponseCode { |
||||
public final static int SERVER_ERROR = -1; |
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.config; |
||||
package me.lensfrex.trailblazer.api.v1.config; |
||||
|
||||
import java.util.Properties; |
||||
|
@ -1,8 +1,8 @@ |
||||
package me.lensfrex.littlebusters.api.v1.dao; |
||||
package me.lensfrex.trailblazer.api.v1.dao; |
||||
|
||||
import me.lensfrex.littlebusters.api.v1.dao.sql.UserDaoInterface; |
||||
import me.lensfrex.littlebusters.api.v1.pojos.UserInformation; |
||||
import me.lensfrex.littlebusters.api.v1.utils.database.MyBatisUtil; |
||||
import me.lensfrex.trailblazer.api.v1.dao.sql.UserDaoInterface; |
||||
import me.lensfrex.trailblazer.api.v1.pojos.UserInformation; |
||||
import me.lensfrex.trailblazer.api.v1.utils.database.MyBatisUtil; |
||||
import org.apache.ibatis.session.SqlSession; |
||||
|
||||
public class UserDao { |
@ -1,6 +1,6 @@ |
||||
package me.lensfrex.littlebusters.api.v1.dao.sql; |
||||
package me.lensfrex.trailblazer.api.v1.dao.sql; |
||||
|
||||
import me.lensfrex.littlebusters.api.v1.pojos.StoredKey; |
||||
import me.lensfrex.trailblazer.api.v1.pojos.StoredKey; |
||||
|
||||
public interface KeyDaoInterface { |
||||
StoredKey getKeyContentByKeyName(String keyName); |
@ -1,6 +1,6 @@ |
||||
package me.lensfrex.littlebusters.api.v1.dao.sql; |
||||
package me.lensfrex.trailblazer.api.v1.dao.sql; |
||||
|
||||
import me.lensfrex.littlebusters.api.v1.pojos.UserInformation; |
||||
import me.lensfrex.trailblazer.api.v1.pojos.UserInformation; |
||||
import org.apache.ibatis.annotations.Param; |
||||
|
||||
public interface UserDaoInterface { |
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.exceptions; |
||||
package me.lensfrex.trailblazer.api.v1.exceptions; |
||||
|
||||
public class ConfigureFileInvalidException extends Exception { |
||||
public ConfigureFileInvalidException() { |
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.exceptions; |
||||
package me.lensfrex.trailblazer.api.v1.exceptions; |
||||
|
||||
public class RequestDataInvalidException extends Exception { |
||||
public RequestDataInvalidException(String message) { |
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.exceptions.user; |
||||
package me.lensfrex.trailblazer.api.v1.exceptions.user; |
||||
|
||||
public class LoginInfoWrongException extends Exception { |
||||
public LoginInfoWrongException(String message) { |
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.pojos; |
||||
package me.lensfrex.trailblazer.api.v1.pojos; |
||||
|
||||
public class StoredKey { |
||||
public String keyContent; |
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.pojos; |
||||
package me.lensfrex.trailblazer.api.v1.pojos; |
||||
|
||||
public class UserInformation { |
||||
public long uid; |
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.pojos; |
||||
package me.lensfrex.trailblazer.api.v1.pojos; |
||||
|
||||
public class UserResult { |
||||
public final int uid; |
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.service; |
||||
package me.lensfrex.trailblazer.api.v1.service; |
||||
|
||||
import jakarta.ws.rs.POST; |
||||
import jakarta.ws.rs.Path; |
@ -1,10 +1,10 @@ |
||||
package me.lensfrex.littlebusters.api.v1.service.token; |
||||
package me.lensfrex.trailblazer.api.v1.service.token; |
||||
|
||||
import jakarta.ws.rs.POST; |
||||
import jakarta.ws.rs.Path; |
||||
import jakarta.ws.rs.Produces; |
||||
import jakarta.ws.rs.core.MediaType; |
||||
import me.lensfrex.littlebusters.api.v1.utils.jwt.JWTManager; |
||||
import me.lensfrex.trailblazer.api.v1.utils.jwt.JWTManager; |
||||
|
||||
@Path("/token") |
||||
public class TokenChecker { |
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.service.token; |
||||
package me.lensfrex.trailblazer.api.v1.service.token; |
||||
|
||||
import jakarta.ws.rs.POST; |
||||
import jakarta.ws.rs.Path; |
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.utils; |
||||
package me.lensfrex.trailblazer.api.v1.utils; |
||||
|
||||
|
||||
import java.io.ByteArrayOutputStream; |
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.utils; |
||||
package me.lensfrex.trailblazer.api.v1.utils; |
||||
|
||||
public class InputChecker { |
||||
|
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.utils; |
||||
package me.lensfrex.trailblazer.api.v1.utils; |
||||
|
||||
import java.time.LocalDateTime; |
||||
|
@ -1,4 +1,4 @@ |
||||
package me.lensfrex.littlebusters.api.v1.utils.database; |
||||
package me.lensfrex.trailblazer.api.v1.utils.database; |
||||
|
||||
import org.apache.ibatis.io.Resources; |
||||
import org.apache.ibatis.session.SqlSession; |
@ -1,10 +1,9 @@ |
||||
package me.lensfrex.littlebusters.api.v1.utils.jwt; |
||||
package me.lensfrex.trailblazer.api.v1.utils.jwt; |
||||
|
||||
import io.jsonwebtoken.*; |
||||
import io.jsonwebtoken.security.Keys; |
||||
|
||||
import java.security.Key; |
||||
import java.time.LocalDate; |
||||
import java.util.Date; |
||||
import java.util.HashMap; |
||||
import java.util.Map; |
@ -0,0 +1,4 @@ |
||||
package me.lensfrex.trailblazer.api.v1.utils.key; |
||||
|
||||
public class KeyManager { |
||||
} |
@ -1,6 +1,6 @@ |
||||
# 数据库的类型,目前仅支持mysql和mariadb两种sql服务器 |
||||
database.dbType = "mariadb" |
||||
database.url = "jdbc:mariadb://localhost:3386/LittleBusters?characterEncoding=utf-8" |
||||
database.url = "jdbc:mariadb://localhost:3386/Trailblazer?characterEncoding=utf-8" |
||||
database.userName = "root" |
||||
database.password = "321654mid" |
||||
|
Loading…
Reference in new issue