FwzAppConfig.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. //
  2. // FwzAppConfig.h
  3. // smartRhino
  4. //
  5. // Created by tederen on 2019/11/6.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #ifndef FwzAppConfig_h
  9. #define FwzAppConfig_h
  10. #pragma mark - 首页
  11. #pragma mark - 工作
  12. // 审批页 总入口
  13. typedef enum _MyApprovalPageType {
  14. /// 我的审批
  15. Type_ONEA = 0,
  16. /// 我发起的
  17. Type_ONEB,
  18. /// 抄送我的
  19. Type_ONEC
  20. } MyApprovalPageType;
  21. /// 审批页 顶部选项卡
  22. typedef enum _ApprovalPageSelectType {
  23. WaitApprovalType = 0,
  24. ApprovalType,
  25. } ApprovalPageSelectType;
  26. #pragma mark - 信源
  27. typedef enum AddUserType{
  28. AddChatUser = 0,
  29. AddGroupUser = 1,
  30. }AddUserType;
  31. typedef enum SmartBarType{
  32. SmartBarPhoto = 0,
  33. SmartBarCamera = 1,
  34. SmartBarNotes = 2,
  35. SmartBarCollection = 3,
  36. SmartBarFile = 4,
  37. }SmartBarType;
  38. typedef enum SuperPageTypeChatMsgNotice {
  39. /// 从信源 进入 通知
  40. SuperPageTypeChatMsgNotice1 = 1,
  41. /// 从信源 进入 站内信
  42. SuperPageTypeChatMsgNotice2 = 2,
  43. }SuperPageTypeChatMsgNotice;
  44. ///文件夹类型 0 文章 1 通知 2话题 3 收藏 4笔记 5 普通站内信 6匿名站内信 7小组
  45. typedef enum CreateFileFolderType {
  46. ///0 文章
  47. CreateArticleType = 0,
  48. ///1 通知
  49. CreateNoticeType = 1,
  50. ///2 话题
  51. CreateTopicType = 2,
  52. ///3 收藏
  53. CreateCollectionType = 3,
  54. ///4笔记
  55. CreateNotesType = 4,
  56. ///- 4话题本
  57. CreateNewTopicType = -4,
  58. ///5 普通站内信
  59. CreateCommonType = 5,
  60. ///6匿名站内信
  61. CreateAnonymousType = 6,
  62. ///7小组
  63. CreateGroupType = 7,
  64. ///8会议
  65. CreateMeetingType = 8,
  66. ///收件箱
  67. CreateShouType = 800,
  68. }CreateFileFolderType;
  69. typedef enum ModiFyFileFolderType {
  70. ///1 创建
  71. CreateType = 1,
  72. ///2 修改
  73. ModifyType = 2,
  74. }ModiFyFileFolderType;
  75. typedef enum PageTypeFromShou {
  76. /// 全部
  77. PageTypeFromTitleAll = 0,
  78. /// 通知
  79. PageTypeFromTitleNotice = 5,
  80. /// 站内信
  81. PageTypeFromTitleMail = 6,
  82. /// 我审批的
  83. PageTypeFromTitleMeShen = 15,
  84. /// 我发出的
  85. PageTypeFromTitleMeSend = 16,
  86. /// 抄送我的
  87. PageTypeFromTitleChao = 17,
  88. /// 匿名信
  89. PageTypeFromTitleNoSign= 18,
  90. /// 草稿箱
  91. PageTypeFromTitleDraftBox = 2,
  92. /// 已删除
  93. PageTypeFromTitleDeleted = 3,
  94. }PageTypeFromShou;
  95. typedef enum MailListType {
  96. /// 0 用户 1 单位通讯录 2系统通讯录 3 自建通讯录 4其他
  97. MailListUserType = 0,
  98. MailListDesType = 1,
  99. MailListSysType = 2,
  100. MailListCusType = 3,
  101. MailListOtherType = 4,
  102. }MailListType;
  103. typedef enum ChatSearchType {
  104. /// 0 用户 1单聊 2群聊 3文件夹
  105. ChatSearchUserType = 0,
  106. ChatSearchOnlyType = 1,
  107. ChatSearchGroupType = 2,
  108. ChatSearchFileType = 3,
  109. }ChatSearchType;
  110. #pragma mark - 我的
  111. #pragma mark - 三方配置
  112. // 极光
  113. #define kJGAppKey @"2b860e460e1ef98729e4cac1"
  114. #define kJGSecret @"13d8bfab66752a256eb2ae71"
  115. static NSString * const TABLELEAVETOP = @"tableLeaveTop";
  116. static NSString * const TABLETOP = @"tableTop";
  117. #pragma mark - 网络请求
  118. /// 接收响应的方式
  119. typedef enum FWZRsponseStyle {
  120. /// JOSN格式 manager.responseSerializer = [AFJSONResponseSerializer serializer]
  121. JOSN = 1,
  122. /// 二进制数据 manager.responseSerializer = [AFHTTPResponseSerializer serializer];
  123. DATA = 2,
  124. /// XML manager.responseSerializer = [AFXMLParserResponseSerializer serializer];
  125. XML = 3,
  126. }FWZRsponseStyle;
  127. #pragma mark - 更新用户信息
  128. /// 接收响应的方式
  129. typedef enum UpadateUseinfoRequstStyle {
  130. /// 头像
  131. IMAGE = 1,
  132. /// 昵称
  133. NICK = 2,
  134. /// 名字
  135. NAME = 3,
  136. /// 签名
  137. Sign = 4,
  138. /// 介绍
  139. Description = 5,
  140. /// Sex
  141. Sex = 6,
  142. }UpadateUseinfoRequstStyle;
  143. //控制用户批量操作枚举
  144. typedef enum OperationStateEnum {
  145. /// 操作状态:无状态
  146. OperationStateEnum0 = 0,
  147. /// 操作状态:批量编辑
  148. OperationStateEnum1 = 1,
  149. /// 操作状态:移动
  150. OperationStateEnum2 = 2,
  151. /// 操作状态:选择
  152. OperationStateEnum3 = 3,
  153. }OperationStateEnum;
  154. //收藏页面类型
  155. typedef enum MyFavoriteListLevelType {
  156. /// 页面类型:一级列表
  157. MyFavoriteListLevelTypeA = 0,
  158. /// 页面类型:非一级列表
  159. MyFavoriteListLevelTypeB = 1,
  160. /// 页面类型:其他
  161. MyFavoriteListLevelTypeC = 2,
  162. }MyFavoriteListLevelType;
  163. //收藏页面类型
  164. typedef enum MyNoteBookListLevelType {
  165. /// 页面类型:一级列表
  166. MyNoteBookListLevelTypeA = 0,
  167. /// 页面类型:非一级列表
  168. MyNoteBookListLevelTypeB = 1,
  169. /// 页面类型:其他
  170. MyNoteBookListLevelTypeC = 2,
  171. }MyNoteBookListLevelType;
  172. typedef enum TopiclistCellType{
  173. TopiclistCellNone = 1,
  174. TopiclistCellImage = 2,
  175. TopiclistCellFile = 3,
  176. }TopiclistCellType;
  177. typedef enum CollectHanderType{
  178. CollectHanderType_Move = 1,
  179. CollectHanderType_Collect = 2,
  180. }CollectHanderType;
  181. typedef enum TopicAnalyzeType{
  182. PraiseType = 1, ///点赞
  183. CommentType = 2,///评论点赞
  184. }TopicAnalyzeType;
  185. typedef enum NoteListDataType{
  186. NoteListDataType_Text = 1,
  187. NoteListDataType_Img1 = 2,
  188. NoteListDataType_Img2 = 3,
  189. NoteListDataType_Img3 = 3,
  190. NoteListDataType_Img4 = 3,
  191. NoteListDataType_Img5 = 3,
  192. NoteListDataType_Img6 = 3,
  193. NoteListDataType_Img7 = 3,
  194. NoteListDataType_Img8 = 3,
  195. NoteListDataType_Img9 = 3,
  196. NoteListDataType_Img9plus = 3,
  197. }NoteListDataType;
  198. ///类型1 txt文字 2 img:图片 3 file:文件 4 Article:文章 5 notice通知 6 topic话题 7 note笔记 8 collection收藏 9站内信 10小组 11会议 12 收藏文件夹 13 笔记文件夹 14 审批
  199. typedef enum CollectDataType{
  200. /// 收藏列表类型 txt文字
  201. CollectDataType_Text = 1,
  202. /// 收藏列表类型 2 img:图片
  203. CollectDataType_IMG = 2,
  204. /// 收藏列表类型 3 file:文件
  205. CollectDataType_File = 3,
  206. /// 收藏列表类型 4 Article:文章
  207. CollectDataType_Article = 4,
  208. /// 收藏列表类型 5 notice通知
  209. CollectDataType_Notice = 5,
  210. /// 收藏列表类型 6 topic话题
  211. CollectDataType_Topic = 6,
  212. /// 收藏列表类型 7 note笔记
  213. CollectDataType_Note = 7,
  214. /// 收藏列表类型 8 collection收藏
  215. CollectDataType_Collect = 8,
  216. /// 收藏列表类型 9站内信
  217. CollectDataType_InterMail = 9,
  218. /// 收藏列表类型 10小组
  219. CollectDataType_Group = 10,
  220. /// 收藏列表类型 11 会议
  221. CollectDataType_Meeting = 11,
  222. /// 收藏列表类型 12 收藏文件夹
  223. CollectDataType_CollectFile = 12,
  224. /// 收藏列表类型 13 笔记文件夹
  225. CollectDataType_NoteFile = 13,
  226. /// 收藏列表类型 14 审批
  227. CollectDataType_Approval = 14,
  228. /// 收藏列表类型 300 电脑上传文件
  229. CollectDataType_PcFile = 300,
  230. }CollectDataType;
  231. typedef enum CreateNoteBookType{
  232. /// 新建笔记
  233. CreateNoteBookType_Create = 1,
  234. /// 修改笔记
  235. CreateNoteBookType_Modify = 2,
  236. /// 转发 我的二位码
  237. CreateNoteBookType_MyCode = 3,
  238. /// 转发 文章
  239. CreateNoteBookType_Article = 4,
  240. /// 转发 审批
  241. CreateNoteBookType_Approval = 5,
  242. /// 转发 话题
  243. CreateNoteBookType_Topic = 6,
  244. /// 转发 小组
  245. CreateNoteBookType_Group = 7,
  246. /// 转发 站内信
  247. CreateNoteBookType_InterLeter = 8,
  248. /// 转发 通知
  249. CreateNoteBookType_Notice = 9,
  250. }CreateNoteBookType;
  251. typedef enum ChatMsgNoticeType_Source{
  252. /// 来自 通知
  253. ChatMsgNoticeType_Source_1 = 1,
  254. /// 来自 站内信
  255. ChatMsgNoticeType_Source_2 = 2,
  256. }ChatMsgNoticeType_Source;
  257. /// 2话题 3 收藏 4笔记 5通知 6站内信 7小组 12 收藏文件夹 13笔记文件夹 14工作流审批 21 新版话题 100 文章 300 文件 301图片 400会议纪要 500会议详情 601 财务报表 602人事报表 603 出版报表
  258. typedef enum CollectModelType{
  259. CollectModel_Text = 1,
  260. CollectModel_Toipc = 2,
  261. CollectModel_Collect = 3,
  262. CollectModel_NoteBook = 4,
  263. CollectModel_Notice = 5,
  264. CollectModel_InterMail = 6,
  265. CollectModel_Group = 7,
  266. CollectModel_meet = 8,
  267. CollectModel_CollectFile = 12,
  268. CollectModel_NoteFile = 13,
  269. CollectModel_work = 14,
  270. CollectModel_NoSignMail = 18,
  271. CollectModel_NewTopic = -4,
  272. CollectModel_CollectFileAll = 120,
  273. CollectModel_NoteFileAll = 130,
  274. CollectModel_Aritle = 100,
  275. CollectModel_file = 300,
  276. CollectModel_Image = 301,
  277. CollectModel_meetMian = 400,
  278. CollectModel_meetDetail = 500,
  279. CollectModel_financeCount = 601,
  280. CollectModel_affairsCount = 602,
  281. CollectModel_publishCount = 603,
  282. }CollectModelType;
  283. /// 0 新建 1 回复 2 回复全部 3 编辑
  284. typedef enum MailReplayType{
  285. /// 新建
  286. MailReplayCreate = 0,
  287. /// 回复
  288. MailReplayOne = 1,
  289. /// 回复全部
  290. MailReplayAll = 2,
  291. /// 编辑
  292. MailReplayEdit = 3,
  293. }MailReplayType;
  294. /// 0 文章 1 话题 2 通知 3 笔记
  295. typedef enum ZanListPageType{
  296. /// 来自 文章
  297. ZanListPageType_Article = 0,
  298. /// 来自 话题
  299. ZanListPageType_Topic = 1,
  300. /// 来自 通知
  301. ZanListPageType_Notice = 2,
  302. /// 来自 笔记
  303. ZanListPageType_NoteBook = 3,
  304. }ZanListPageType;
  305. ///站内信操作
  306. typedef enum InterLeterHanderType{
  307. /// 创建站内信
  308. InterLeterHanderType_Create = 1,
  309. /// 修改站内信
  310. InterLeterHanderType_Modify = 2,
  311. /// 回复站内信
  312. InterLeterHanderType_Replay = 3,
  313. }InterLeterHanderType;
  314. typedef enum InterLeterDetialType{
  315. InterLeterDetialType_Sign= 1,
  316. InterLeterDetialType_NoSign = 2,
  317. InterLeterDetialType_Replay = 3,
  318. }InterLeterDetialType;
  319. typedef enum NoticeDetailType{
  320. NoticeDetailType_Detail= 1,
  321. NoticeDetailType_DraftBox = 2,
  322. }NoticeDetailType;
  323. typedef enum MailListByZuPageType {
  324. MailListByZuPageType_Sys = 1, // 系统默认组
  325. MailListByZuPageType_custom = 2, // 自定义组
  326. }MailListByZuPageType;
  327. typedef enum MailListDataModelType {
  328. /// 默认分组
  329. MailListByZu_SysGroup = 1,
  330. /// 自定义组
  331. MailListByZu_CusGroup = 2,
  332. ///默认分组成员
  333. MailListByZu_SysUser = 3,
  334. ///自建分组成员
  335. MailListByZu_CusUser = 4,
  336. }MailListDataModelType;
  337. //历史搜索记录
  338. typedef enum HistorySearchType {
  339. /// 首页
  340. HistorySearchType_Home = 1,
  341. /// 信源
  342. HistorySearchType_XinYuan = 2,
  343. /// 通知
  344. HistorySearchType_Notice = 3,
  345. /// 站内信
  346. HistorySearchType_InterMail = 4,
  347. /// 通讯录
  348. HistorySearchType_MailList = 5,
  349. /// 话题
  350. HistorySearchType_Topic = 6,
  351. /// 小组
  352. HistorySearchType_Group = 7,
  353. /// 收藏
  354. HistorySearchType_Collect = 8,
  355. /// 笔记
  356. HistorySearchType_Note = 9,
  357. ///工作
  358. HistorySearchType_Work = 10,
  359. ///文件夹
  360. HistorySearchType_FileJia = 11,
  361. ///联系人
  362. HistorySearchType_User = 12,
  363. ///
  364. HistorySearchType_Common = 13,
  365. ///
  366. HistorySearchType_SourceGroup = 14,
  367. ///
  368. HistorySearchType_TopicGroupManager = 15,
  369. ///
  370. HistorySearchType_Reply = 16,
  371. ///
  372. HistorySearchType_LikeList = 17,
  373. }HistorySearchType;
  374. /// 书城
  375. typedef enum BookHomeType{
  376. BookHomeA = 0,
  377. BookHomeB = 1,
  378. BookHomeC = 2,
  379. BookHomeD = 3,///名栏
  380. BookHomeE = 4,///显示全部
  381. BookHomeF = 5,
  382. }BookHomeType;
  383. typedef enum BookChanelType{
  384. BookChanelPublic = 700, ///公众号
  385. BookChanelVideo = 710, ///视频
  386. BookChanelBook = 720, ///书
  387. }BookChanelType;
  388. typedef enum MediaType{
  389. MediaBookType = 20, ///书
  390. MediaCourseType = 30, ///课程
  391. MediaMusicType = 40, ///音频
  392. MediaVideoType = 60, ///视频
  393. MediaArticeType = 100, ///文章
  394. }MediaType;
  395. #define NOTIFI_ChaoSongRen @"NOTIFI_ChaoSongRen"
  396. #define NOTIFI_ApprovalRen @"NOTIFI_ApprovalRen"
  397. #define NOTIFI_NoteBookSelectNoteBook @"NOTIFI_NoteBookSelectNoteBook"
  398. #define NOTIFI_SelectPeopleAndDepartMent @"NOTIFI_SelectPeopleAndDepartMent"
  399. #define NOTIFI_SELECTCREATENOTEFOLDER @"NOTIFI_SELECTCREATENOTEFOLDER"
  400. #define BOOKMUSICSELECTARRAY @"BOOKMUSICSELECTARRAY"
  401. #define NEWFILESUCCESS @"NEWFILESUCCESS"
  402. #define NOTEBOOKSAVE @"NOTEBOOKSAVE"
  403. #endif /* FwzAppConfig_h */