时里院子市集
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

49 lines
932 B

import type { PageParam } from '@/api/index';
/**
* 用户积分记录
*/
export interface UserPointsLog {
// 积分记录ID
logId?: number;
// 用户ID
userId?: number;
// 积分变动类型 1-获得 2-消费 3-过期 4-管理员调整
type?: number;
// 积分变动数量
points?: number;
// 变动原因
reason?: string;
// 关联订单ID
orderId?: number;
// 备注
comments?: string;
// 创建时间
createTime?: string;
// 更新时间
updateTime?: string;
}
/**
* 用户积分统计
*/
export interface UserPointsStats {
// 当前积分
currentPoints?: number;
// 累计获得积分
totalEarned?: number;
// 累计消费积分
totalUsed?: number;
// 即将过期积分
expiringSoon?: number;
}
/**
* 用户积分搜索条件
*/
export interface UserPointsLogParam extends PageParam {
userId?: number;
type?: number;
startTime?: string;
endTime?: string;
}