mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
♻️ 变更目录,参考 TGAssistant 优化一些方法
This commit is contained in:
41
src/web/request/TGRequest.ts
Normal file
41
src/web/request/TGRequest.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* @file core request TGRequest.ts
|
||||
* @description 应用用到的请求函数
|
||||
* @author BTMuli<bt-muli@outlook.com>
|
||||
* @since Alpha v0.2.0
|
||||
*/
|
||||
|
||||
import { getAnnoList, getAnnoContent } from "./getAnno";
|
||||
import {
|
||||
getTokensByLoginTicket, getLtokenBySToken,
|
||||
getCookieTokenBySToken, vetifySToken,
|
||||
} from "./getTokens";
|
||||
import {
|
||||
getGameCardByCookie, getGameAccountsByCookie,
|
||||
getAccountsBySToken, getGameRoleListByCookie,
|
||||
} from "./getGameData";
|
||||
|
||||
const TGRequest = {
|
||||
Anno: {
|
||||
getList: getAnnoList,
|
||||
getContent: getAnnoContent,
|
||||
},
|
||||
User: {
|
||||
byLoginTicket: {
|
||||
getLTokens: getTokensByLoginTicket,
|
||||
},
|
||||
byCookie: {
|
||||
getAccounts: getGameAccountsByCookie,
|
||||
getGameCard: getGameCardByCookie,
|
||||
getCharacter: getGameRoleListByCookie,
|
||||
},
|
||||
bySToken: {
|
||||
verify: vetifySToken,
|
||||
getLToken: getLtokenBySToken,
|
||||
getAccounts: getAccountsBySToken,
|
||||
getCookieToken: getCookieTokenBySToken,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TGRequest;
|
||||
Reference in New Issue
Block a user