package com.sonic.frog.event.outer.payload;

import com.sonic.frog.enums.DeductionTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author coder
 * @date 2020-05-07
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserDeductionStatPayload {

    /**
     * 用户id
     */
    private Long userId;

    /**
     * AI id
     */
    private Long aiId;

    /**
     * 扣除类型
     */
    private DeductionTypeEnum deductionType;

    /**
     * 业务发生时间
     */
    private LocalDateTime bizTime;

    /**
     * 额外扩展字段 json
     * 文本：用户内容，ai内容   [{"user":123,"content":"xxxx"},{"ai":222,"content":"xxx"}]
     * 语音：发送语音
     * 语音通话：是否结束 {"status":1，"voiceCallId":22, "duration":300} 1: 通话中，2:打断 3：通话结束
     */
    private String extra;
}
