fix(GCG): 添加 content_id 用于短期外链跳转

This commit is contained in:
BTMuli
2023-03-22 14:30:15 +08:00
parent eec880bc7b
commit b024323ca0
4 changed files with 195 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -14,7 +14,7 @@ import { BaseCard } from "../../interface/GCG";
*/
export const Config = {
storeName: "GCG",
keyPath: "name",
keyPath: "id",
// 根据 type 分类
indexes: [
"type",

View File

@@ -30,6 +30,7 @@ export enum BaseCardType {
* @see ActionCard
* @see MonsterCard
* @property {string} name 卡牌名称
* @property {int} id 卡牌 ID // TODO: 用于短期外链跳转
* @property {string} type 卡牌类型
* @property {unknown} icon 卡牌图标
* @property {unknown} info 卡牌信息
@@ -39,6 +40,7 @@ export enum BaseCardType {
*/
export interface BaseCard {
name: string;
id: number;
type: BaseCardType;
icon: unknown;
info: unknown;

View File

@@ -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 MysPostApi = "https://bbs-api.mihoyo.com/post/wapi/getPostFull?gids=2&post_id=";
export const MysGachaInfo =
"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 的返回类型
* @see https://bbs-api.mihoyo.com/post/wapi/getNewsList?gids=2&type={EnumPostType}