🚸 添加AIGC相关注释

This commit is contained in:
BTMuli
2025-11-18 23:01:51 +08:00
parent 68809a93c6
commit 0fbf1f7c2a
2 changed files with 19 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
/**
* 帖子类型定义文件
* @since Beta v0.8.4
* @since Beta v0.8.6
*/
declare namespace TGApp.BBS.Post {
@@ -348,11 +348,13 @@ declare namespace TGApp.BBS.Post {
/**
* 帖子额外信息
* @since Beta v0.8.4
* @since Beta v0.8.6
*/
type PostExtra = {
/** UGC 主帖子额外信息 */
ugc_master_post_extra: PostExtraUgc;
/** AIGC 额外信息 */
minos_aigc_info: PostExtraAigc | null;
};
/**
@@ -366,6 +368,15 @@ declare namespace TGApp.BBS.Post {
game_region: string;
};
/**
* AIGC 额外信息
* @since Beta v0.8.6
*/
type PostExtraAigc = {
/** 是否包含 AI 生成内容 */
is_aigc: boolean;
};
/**
* AI 生成内容元数据
* @since Beta v0.8.4

View File

@@ -108,6 +108,10 @@
<v-icon size="16">mdi-copyright</v-icon>
<span>{{ getRepublishAuthorization(postData.post.republish_authorization) }}</span>
</span>
<span v-if="postData.post.post_extra?.minos_aigc_info?.is_aigc" class="tp-post-aigc">
<v-icon size="16">mdi-robot</v-icon>
<span>疑似含AI生成内容请谨慎甄别</span>
</span>
</div>
<TpParser v-model:data="renderPost" />
</div>
@@ -490,7 +494,8 @@ function handleUser(user: TGApp.BBS.Post.User): void {
opacity: 0.8;
}
.tp-post-copyright {
.tp-post-copyright,
.tp-post-aigc {
display: flex;
align-items: center;
justify-content: center;