mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
fix(GCG): 添加 content_id 用于短期外链跳转
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -14,7 +14,7 @@ import { BaseCard } from "../../interface/GCG";
|
|||||||
*/
|
*/
|
||||||
export const Config = {
|
export const Config = {
|
||||||
storeName: "GCG",
|
storeName: "GCG",
|
||||||
keyPath: "name",
|
keyPath: "id",
|
||||||
// 根据 type 分类
|
// 根据 type 分类
|
||||||
indexes: [
|
indexes: [
|
||||||
"type",
|
"type",
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ export enum BaseCardType {
|
|||||||
* @see ActionCard
|
* @see ActionCard
|
||||||
* @see MonsterCard
|
* @see MonsterCard
|
||||||
* @property {string} name 卡牌名称
|
* @property {string} name 卡牌名称
|
||||||
|
* @property {int} id 卡牌 ID // TODO: 用于短期外链跳转
|
||||||
* @property {string} type 卡牌类型
|
* @property {string} type 卡牌类型
|
||||||
* @property {unknown} icon 卡牌图标
|
* @property {unknown} icon 卡牌图标
|
||||||
* @property {unknown} info 卡牌信息
|
* @property {unknown} info 卡牌信息
|
||||||
@@ -39,6 +40,7 @@ export enum BaseCardType {
|
|||||||
*/
|
*/
|
||||||
export interface BaseCard {
|
export interface BaseCard {
|
||||||
name: string;
|
name: string;
|
||||||
|
id: number;
|
||||||
type: BaseCardType;
|
type: BaseCardType;
|
||||||
icon: unknown;
|
icon: unknown;
|
||||||
info: unknown;
|
info: unknown;
|
||||||
|
|||||||
@@ -1,8 +1,17 @@
|
|||||||
|
/**
|
||||||
|
* @file interface MysPost
|
||||||
|
* @description interface MysPost
|
||||||
|
* @author BTMuli<bt-muli@outlook.com>
|
||||||
|
* @since Alpha
|
||||||
|
*/
|
||||||
|
|
||||||
export const MysNewsApi = "https://bbs-api.mihoyo.com/post/wapi/getNewsList?gids=2&type=";
|
export const MysNewsApi = "https://bbs-api.mihoyo.com/post/wapi/getNewsList?gids=2&type=";
|
||||||
export const MysPostApi = "https://bbs-api.mihoyo.com/post/wapi/getPostFull?gids=2&post_id=";
|
export const MysPostApi = "https://bbs-api.mihoyo.com/post/wapi/getPostFull?gids=2&post_id=";
|
||||||
export const MysGachaInfo =
|
export const MysGachaInfo =
|
||||||
"https://api-takumi.mihoyo.com/common/blackboard/ys_obc/v1/gacha_pool?app_sn=ys_obc";
|
"https://api-takumi.mihoyo.com/common/blackboard/ys_obc/v1/gacha_pool?app_sn=ys_obc";
|
||||||
|
|
||||||
|
export const MysContent = "https://api-static.mihoyo.com/common/blackboard/ys_obc/v1/content/info?app_sn=ys_obc&content_id="
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description 获取 News 的返回类型
|
* @description 获取 News 的返回类型
|
||||||
* @see https://bbs-api.mihoyo.com/post/wapi/getNewsList?gids=2&type={EnumPostType}
|
* @see https://bbs-api.mihoyo.com/post/wapi/getNewsList?gids=2&type={EnumPostType}
|
||||||
|
|||||||
Reference in New Issue
Block a user