1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // UserDefaultUtil.swift
- // ADHTuanCan
- //
- // Created by 敖德亨 on 2023/10/4.
- //
- import Foundation
- import SwiftyUserDefaults
- extension DefaultsKeys{
-
- ///手机号
- var UserPhone : DefaultsKey<String?>{.init("UserPhone")}
-
- ///是否第一次打开APP
- var isFirstOpen : DefaultsKey<Bool>{.init("isFirstOpen", defaultValue: true)}
-
- ///
- var BaseUrl : DefaultsKey<String?>{.init("BaseUrl")}
-
- /// token
- var UserToken : DefaultsKey<String?>{.init("UserToken")}
-
- /// token
- var User_id : DefaultsKey<String?>{.init("User_id")}
-
- /// 账号
- var Account : DefaultsKey<String?>{.init("Account")}
-
- /// 用户名
- var User_name : DefaultsKey<String?>{.init("User_name")}
-
- /// 头像地址
- var Avatar : DefaultsKey<String?>{.init("Avatar")}
-
- /// 昵称
- var Nick_name : DefaultsKey<String?>{.init("Nick_name")}
-
- /// “用户类型,1,普通用户,2销售,3,销售团长
- var userType : DefaultsKey<String?>{.init("userType")}
-
- /// 是否已设置支付密码,1已设置,0未设置
- var isSetPayPassword : DefaultsKey<String?>{.init("isSetPayPassword")}
- }
|