refactor(后台会员): 收窄会员状态的字面量联合
- adminApiTypes.ts:AdminProfileMembershipPayload.status 由 string 收窄为 'normal' | 'active' Co-authored-by: Junie <junie@jetbrains.com>
This commit is contained in:
@@ -1054,7 +1054,8 @@ export interface AdminUserDetailResponse {
|
||||
/** 当前会员状态与账期;无会员时为 `normal` 档位、无到期时间。 */
|
||||
export interface AdminProfileMembershipPayload {
|
||||
plan: ProfileMembershipPlan;
|
||||
status: string;
|
||||
/** 与后端 `RuntimeProfileMembershipStatus` 对齐:`normal` / `active`。 */
|
||||
status: 'normal' | 'active';
|
||||
cycleKind: ProfileMembershipCycleKind;
|
||||
cycleIndex: number;
|
||||
cycleCount: number;
|
||||
|
||||
Reference in New Issue
Block a user