Visual_Novel_iOS/crush/Crush/Src/Models/AIDicts.swift

141 lines
3.5 KiB
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// AIDicts.swift
// Crush
//
// Created by Leon on 2025/7/29.
//
// MARK: - AI Dict
/// AI
struct AIDictInfo: Codable {
///
var roleDictList: [DictNode]?
///
var characterDictList: [DictNode]?
///
var tagDictList: [DictNode]?
var imageStyleDictList: [ImageStylePic]?
///
// var imageStylePicList: [ImageStylePic]?
///
var timbreDictList: [TimbreDict]?
}
struct DictNode: Codable {
var code: String?
var name: String = "-"
var childDictList: [DictNode]?
}
/**
{
"prompt": "https://public-pictures.epal.gg/app/images/chatRoom/gift/ordinary/Luv_ya.png",
"sort": 0,
"url": "https://public-pictures.epal.gg/app/images/chatRoom/gift/ordinary/Luv_ya.png",
"id": 1,
"code": "IS0001",
"isDelete": 0,
"createTime": null,
"name": "1"
}
*/
struct ImageStylePic: Codable {
var prompt: String?
var sort: Int?
var url: String?
var id: Int?
var code: String?
var isDelete: Int = 0
var createTime: String?
var name: String = ""
}
///
struct TimbreDict: Codable {
var id: Int?
var type: Int?
var supportEmotions: String?
var code: String?
///
var name: String?
///
var description: String?
var url: String?
var isDelete: Int?
var createTime: String?
var voiceType: String?
var voiceText: String?
/// -5
var pitchRate: Int?
/// 10
var speechRate: Int?
/*
{
"description" : "",
"id" : 1,
"supportEmotions" : null,
"url" : "https:\/\/hhb.crushlevel.ai\/static\/sound\/TB0001.mp3",
"type" : 1,
"isDelete" : 0,
"code" : "TB0001",
"createTime" : null,
"language" : null,
"voiceText" : "",
"voiceType" : "S_vrx7PzCx1",
"name" : ""
}
*/
}
// MARK: - Gift
struct GiftDictModel: Codable{
var name: String?
var sort: Int?
var id: Int?
var price: Int?
var heartbeatLevel: HeartbeatLevel?
var startVal: Int?
var desc: String?
var icon: String?
///
var isMemberGift: Bool?
/*
{
"name": "",
"sort": 1,
"id": 1,
"price": 10,
"heartbeatLevel": null,
"startVal": null,
"desc": null,
"isMemberGift": true,
"icon": "https://public-pictures.epal.gg/app/images/chatRoom/gift/ordinary/Lolipop.png"
}*/
}
// MARK: - ChatModel
struct AIChatModel: Codable {
var code: String? // code
var name: String? //
var description: String? //
var textPrice: Int? //
var voicePrice: Int? //
var voiceChatPrice: Int? //
var questionMark: String? //
/*
{
"code": "CM0002",
"questionMark": "2
",
"textPrice": 220,
"voiceChatPrice": 240,
"description": "2AI",
"name": "2"
}
*/
}