//
//  UserInfo.h
//  fastservice
//
//  Created by xuning on 5/5/25.
//  Copyright © 2025 FastService. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
//默认地址信息
@interface UserInfoAddr : NSObject
@property (nonatomic, assign) double longitude;
@property (nonatomic, assign) double latitude;
@property (nonatomic, assign) int address_id;
@property (nonatomic, copy) NSString *mobile;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *label;
@property (nonatomic, copy) NSString *area;
@property (nonatomic, copy) NSString *address;
@property (nonatomic, copy) NSString *city;
@property (nonatomic, copy) NSString *district;
@end


@interface UserInfoB : NSObject
@property (nonatomic, copy) NSString *nickname;//用户名
@property (nonatomic, assign) int gender;//性别
@property (nonatomic, copy) NSString *mobile;
@property (nonatomic,  copy) NSString *portrait;//头像
@property (nonatomic,assign) int u_count;//发单数
@property (nonatomic,assign) int uc_count;//取消单数
//微信信息
@property (nonatomic,copy) NSString *wx_name;
@property (nonatomic,copy) NSString *wx_openid;

@property (nonatomic,strong) UserInfoAddr *addr_d;
@end


//骑士信息
@interface UserInfoC : NSObject
@property (nonatomic, assign) int group_id;
@property (nonatomic, assign) int c_s;//骑士状态，0-无效，2-正常（抢单），3-收工，4-封禁，6-接受派单推送
@property (nonatomic, assign) int a_s;//审核状态，0-未认证，1-已认证
@property (nonatomic, assign) int t_s;//培训状态，0-未培训，1-已培训
@property (nonatomic, assign) int g_s;//服务保障状态，0-未认证，1-已认证
@property (nonatomic, copy) NSString *qr;//二维码地址
@property (nonatomic, assign) int c_count;//骑士接单数
@property (nonatomic, copy) NSString *a_name;//展现名字（如刘师傅）
@property (nonatomic, copy) NSString *name;//真实姓名
@property (nonatomic, copy) NSString *bstr;//保证金200元
@property (nonatomic, copy) NSString *reason_r; //认证驳回原因
@property (nonatomic, assign) int l;  //骑士等级标志  0=铁牌骑士,1=铜牌骑士,2=银牌骑士,3=金牌骑士,4=钻石骑士
@property (nonatomic, assign) int assignable;//0 没有骑士调配功能
@property (nonatomic, strong) NSString *workDate;// 开工日期,避免第二天还是第一天的开工状态,导致无法接单
@end

//商户信息
@interface UserInfoM : NSObject
@property (nonatomic,assign) int group_id;//商户认证时的group_id
@property (nonatomic,assign) int m_s;//商户状态，0-未审核，1-已审核
@property (nonatomic,copy) NSString *cate;//商户品类
@property (nonatomic,assign) int mul_f;//一取多发标志位，0-未开通，1-开通
@end

@interface UserInfo : NSObject
@property (nonatomic, strong) NSString * mobile;
@property (nonatomic, assign) int user_id;
@property (nonatomic, strong) NSString * cookie;
@property (nonatomic,copy  ) NSString *spw;


@property (nonatomic,strong) UserInfoB *b;//普通用户信息
@property (nonatomic,strong) UserInfoC *c;//骑士信息
@property (nonatomic,strong) UserInfoM *m;//商户信息

@property (nonatomic,strong) NSString *headPortrait;//头像

//zi
@property (nonatomic, strong) NSString *lastDate;//上一次保存的时间 :保险使用

@property (nonatomic,assign) int merchant_set;//商家高级设置
@property (nonatomic,assign) int hide_flag;//隐身登录标识
@end

NS_ASSUME_NONNULL_END
