//
//  RoleCreateModels.swift

//
//  Created by Leon on 2025/7/29.
//

import Foundation

struct AIUserRequest: Codable {
    var aiId: Int?
    var nickname: String?
    var sex: Sex?
    var headImg: String?
    var birthday: String?
    /// 角色Code
    var roleCode: String?
    /// 性格code
    var characterCode: String?
//    /// 用户输入的内容
//    var content: String?
    var tagCode: String?
    /// 10~300
    var introduction: String?
    /// 1公开、2私密
    var permission: Int = 1
    /// 形象图
    var imageUrl: String?
    /// 720x1280?
    var imageWidth: Float = 720//String?
    var imageHeight: Float = 1280
    var aiUserExt: AIUserRequestExt?
    
    /// 人物设定 用户输入
    var userProfile: String?
    /// 对话风格 用户输入
    var userDialogueStyle: String?
}

struct AIUserRequestExt: Codable {
    /// 人物设定 10~2000
    var profile: String?
    /// 对话风格
    var dialogueStyle: String?
    /// 对话开场白
    var dialoguePrologue: String?
    /// 对话音色Code
    var dialogueTimbreCode: String?
    /// 对话-音高
    var dialoguePitch: String?
    /// 对话-语速
    var dialogueSpeechRate: String?
    /// 对话音色url(可能是试听后的url,需要单独保存)
    var dialogueTimbreUrl: String?
    /// 形象风格code
    var imageStyleCode: String?
    /// 形象描述
    var imageDesc: String?
    /// 形象参考。 可选
    var imageReferenceUrl: String?
}
