// // GuildMessageModel.h // YuMi // // Created by YuMi on 2022/4/18. // 公会消息的模型 #import NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger, MessageGuildState) { ///未处理 MessageGuildState_Untreated = 1, ///同意 MessageGuildState_Agree, ///拒绝 MessageGuildState_Reject, ///已过期 MessageGuildState_OutData, ///已处理 MessageGuildState_Processed, }; @class GuildMessageLayoutModel, GuildMessageRequestModel, GuildMessageLayoutInfoModel; @interface GuildMessageModel : PIBaseModel @property (nonatomic,assign) MessageGuildState msgStatus; ///请求的时候需要的参数 @property (nonatomic,strong) GuildMessageRequestModel *params; ///约束 @property (nonatomic,strong) GuildMessageLayoutModel *layout; ///请求所需要用到的接口名称 @property (strong, nonatomic) NSString *url; ///处理人 @property (nonatomic,copy) NSString *approverNick; ///处理人的uid @property (nonatomic,copy) NSString *approverUid; /// 目前就跳转公会房间 类型的话 合并了代码之后在搞 @property (nonatomic,assign) NSInteger routerType; ///公会的id @property (nonatomic,assign) NSInteger routerValue; @end ///约束的 @interface GuildMessageLayoutModel : PIBaseModel ///显示的标题 @property (nonatomic,strong) GuildMessageLayoutInfoModel *title; ///显示的时间 @property (nonatomic,strong) GuildMessageLayoutInfoModel *time; ///显示的内容 @property (nonatomic,strong) NSArray *contents; @end @interface GuildMessageLayoutInfoModel : PIBaseModel ///显示内容 @property (strong, nonatomic) NSString *content; ///字体大小 @property (nonatomic, assign) CGFloat fontSize; ///字体的颜色 @property (strong, nonatomic) NSString *fontColor; ///是否是粗体 @property (nonatomic,assign) BOOL fontBold; ///跳转的类型 @property (assign, nonatomic) NSInteger routertype; ///类型的地址 @property (strong, nonatomic) NSString *routerValue; @end @interface GuildMessageRequestModel : PIBaseModel ///家族的id @property (nonatomic,copy) NSString *familyId; ///用户的id @property (nonatomic,copy) NSString *inviteId; @end NS_ASSUME_NONNULL_END