Add chat gifts and relationship diary UI
This commit is contained in:
@@ -70,6 +70,9 @@ export class ApiPath {
|
||||
/** 发送消息 */
|
||||
static readonly chatSend = apiContract.chatSend.path;
|
||||
|
||||
/** 记录礼物邀请打开或取消动作 */
|
||||
static readonly chatTipOfferActions = apiContract.chatTipOfferActions.path;
|
||||
|
||||
/** 获取聊天历史 */
|
||||
static readonly chatHistory = apiContract.chatHistory.path;
|
||||
|
||||
@@ -91,6 +94,25 @@ export class ApiPath {
|
||||
);
|
||||
}
|
||||
|
||||
/** 获取当前角色的专属日记 */
|
||||
static readonly privateRoomDiaries = apiContract.privateRoomDiaries.path;
|
||||
|
||||
/** 将专属日记标记为已读 */
|
||||
static privateRoomDiarySeen(diaryId: string): string {
|
||||
return apiContract.privateRoomDiarySeen.path.replace(
|
||||
"{diaryId}",
|
||||
encodeURIComponent(diaryId),
|
||||
);
|
||||
}
|
||||
|
||||
/** 使用积分解锁专属日记 */
|
||||
static privateRoomDiaryUnlock(diaryId: string): string {
|
||||
return apiContract.privateRoomDiaryUnlock.path.replace(
|
||||
"{diaryId}",
|
||||
encodeURIComponent(diaryId),
|
||||
);
|
||||
}
|
||||
|
||||
// ============ 数据看板相关 ============
|
||||
/** 上报 PWA 事件 */
|
||||
static readonly metricsPwaEvent = apiContract.metricsPwaEvent.path;
|
||||
|
||||
Reference in New Issue
Block a user