Files
yingmeng-ios-switf/yinmeng-ios/Modules/User/VM/UserObject.swift

56 lines
1.1 KiB
Swift
Raw Normal View History

2024-02-25 23:11:02 +08:00
//
// UserObject.swift
// yinmeng-ios
//
2024-03-05 14:04:09 +08:00
// Created by yinmeng on 2024/2/25.
2024-02-25 23:11:02 +08:00
//
import Foundation
2024-02-26 23:04:17 +08:00
enum UserFunctionType:Int {
case recharge
2024-03-07 16:56:48 +08:00
case myRoom
2024-02-26 23:04:17 +08:00
case mobile
case password
case about
case logoff
}
struct UserFunctionItem {
var title:String = ""
var isHiddenIcon:Bool = false
var itmeType:UserFunctionType = .recharge
}
2024-02-25 23:11:02 +08:00
struct UserObject: HandyJSON {
2024-03-22 11:54:23 +08:00
var birth:Int64 = 0
var userDesc = ""
2024-02-25 23:11:02 +08:00
var uid:Int? = 0
var erbanNo:Int? = 0
var avatar:String? = ""
var nick:String? = ""
2024-03-13 18:44:52 +08:00
var gender:UserSexType? = .Boy
2024-03-01 20:37:00 +08:00
var isBindPhone:Bool? = false
var isBindPasswd:Bool? = false
var phone:String? = ""
2024-03-13 18:44:52 +08:00
var giftValue:Int64 = 0
var userLevelVo:userLevelModel?
2024-03-22 11:54:23 +08:00
var userVoice = ""
var voiceDura = ""
2024-02-25 23:11:02 +08:00
}
2024-03-13 18:44:52 +08:00
struct userLevelModel:HandyJSON{
var charmUrl = ""{
didSet{
charmNewUrl = MAIDESEncryptTool.getCharmImageUrl(charmUrl)
}
}
var experUrl = ""{
didSet{
experNewUrl = MAIDESEncryptTool.getWealthImageUrl(experUrl)
}
}
var experNewUrl = ""
var charmNewUrl = ""
2024-02-25 23:11:02 +08:00
}