FwzAppConfig.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524
  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 = 100,
  48. ///1 通知
  49. CreateNoticeType = 5,
  50. ///2 话题
  51. CreateTopicType = 2,
  52. ///3 收藏
  53. CreateCollectionType = 3,
  54. ///4笔记
  55. CreateNotesType = 4,
  56. ///- 4话题本
  57. CreateNewTopicType = -4,
  58. ///5 普通站内信
  59. CreateCommonType = 6,
  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. PageTypeFromTitleSystem = 19,
  92. /// 草稿箱
  93. PageTypeFromTitleDraftBox = 2,
  94. /// 已删除
  95. PageTypeFromTitleDeleted = 3,
  96. }PageTypeFromShou;
  97. typedef enum MailListType {
  98. /// 0 用户 1 单位通讯录 2系统通讯录 3 自建通讯录 4其他
  99. MailListUserType = 0,
  100. MailListDesType = 1,
  101. MailListSysType = 2,
  102. MailListCusType = 3,
  103. MailListOtherType = 4,
  104. }MailListType;
  105. typedef enum ChatSearchType {
  106. /// 0 用户 1单聊 2群聊 3文件夹
  107. ChatSearchUserType = 0,
  108. ChatSearchOnlyType = 1,
  109. ChatSearchGroupType = 2,
  110. ChatSearchFileType = 3,
  111. }ChatSearchType;
  112. #pragma mark - 我的
  113. #pragma mark - 三方配置
  114. // 极光
  115. #define kJGAppKey @"8e3b7effbeb919069dd97653"
  116. #define kJGSecret @"ef0e378acdcd998766adbf9f"
  117. static NSString * const TABLELEAVETOP = @"tableLeaveTop";
  118. static NSString * const TABLETOP = @"tableTop";
  119. #pragma mark - 网络请求
  120. /// 接收响应的方式
  121. typedef enum FWZRsponseStyle {
  122. /// JOSN格式 manager.responseSerializer = [AFJSONResponseSerializer serializer]
  123. JOSN = 1,
  124. /// 二进制数据 manager.responseSerializer = [AFHTTPResponseSerializer serializer];
  125. DATA = 2,
  126. /// XML manager.responseSerializer = [AFXMLParserResponseSerializer serializer];
  127. XML = 3,
  128. }FWZRsponseStyle;
  129. #pragma mark - 更新用户信息
  130. /// 接收响应的方式
  131. typedef enum UpadateUseinfoRequstStyle {
  132. /// 头像
  133. IMAGE = 1,
  134. /// 昵称
  135. NICK = 2,
  136. /// 名字
  137. NAME = 3,
  138. /// 签名
  139. Sign = 4,
  140. /// 介绍
  141. Description = 5,
  142. /// Sex
  143. Sex = 6,
  144. }UpadateUseinfoRequstStyle;
  145. //控制用户批量操作枚举
  146. typedef enum OperationStateEnum {
  147. /// 操作状态:无状态
  148. OperationStateEnum0 = 0,
  149. /// 操作状态:批量编辑
  150. OperationStateEnum1 = 1,
  151. /// 操作状态:移动
  152. OperationStateEnum2 = 2,
  153. /// 操作状态:选择
  154. OperationStateEnum3 = 3,
  155. }OperationStateEnum;
  156. //收藏页面类型
  157. typedef enum MyFavoriteListLevelType {
  158. /// 页面类型:一级列表
  159. MyFavoriteListLevelTypeA = 0,
  160. /// 页面类型:非一级列表
  161. MyFavoriteListLevelTypeB = 1,
  162. /// 页面类型:其他
  163. MyFavoriteListLevelTypeC = 2,
  164. }MyFavoriteListLevelType;
  165. //收藏页面类型
  166. typedef enum MyNoteBookListLevelType {
  167. /// 页面类型:一级列表
  168. MyNoteBookListLevelTypeA = 0,
  169. /// 页面类型:非一级列表
  170. MyNoteBookListLevelTypeB = 1,
  171. /// 页面类型:其他
  172. MyNoteBookListLevelTypeC = 2,
  173. }MyNoteBookListLevelType;
  174. typedef enum TopiclistCellType{
  175. TopiclistCellNone = 1,
  176. TopiclistCellImage = 2,
  177. TopiclistCellFile = 3,
  178. TopiclistDraft = 100,
  179. }TopiclistCellType;
  180. typedef enum CollectHanderType{
  181. CollectHanderType_Move = 1,
  182. CollectHanderType_Collect = 2,
  183. }CollectHanderType;
  184. typedef enum TopicAnalyzeType{
  185. PraiseType = 1, ///点赞
  186. CommentType = 2,///评论点赞
  187. }TopicAnalyzeType;
  188. typedef enum NoteListDataType{
  189. NoteListDataType_Text = 1,
  190. NoteListDataType_Img1 = 2,
  191. NoteListDataType_Img2 = 3,
  192. NoteListDataType_Img3 = 3,
  193. NoteListDataType_Img4 = 3,
  194. NoteListDataType_Img5 = 3,
  195. NoteListDataType_Img6 = 3,
  196. NoteListDataType_Img7 = 3,
  197. NoteListDataType_Img8 = 3,
  198. NoteListDataType_Img9 = 3,
  199. NoteListDataType_Img9plus = 3,
  200. }NoteListDataType;
  201. ///类型1 txt文字 2 img:图片 3 file:文件 4 Article:文章 5 notice通知 6 topic话题 7 note笔记 8 collection收藏 9站内信 10小组 11会议 12 收藏文件夹 13 笔记文件夹 14 审批
  202. typedef enum CollectDataType{
  203. /// 收藏列表类型 txt文字
  204. CollectDataType_Text = 1,
  205. /// 收藏列表类型 2 img:图片
  206. CollectDataType_IMG = 2,
  207. /// 收藏列表类型 3 file:文件
  208. CollectDataType_File = 3,
  209. /// 收藏列表类型 4 Article:文章
  210. CollectDataType_Article = 4,
  211. /// 收藏列表类型 5 notice通知
  212. CollectDataType_Notice = 5,
  213. /// 收藏列表类型 6 topic话题
  214. CollectDataType_Topic = 6,
  215. /// 收藏列表类型 7 note笔记
  216. CollectDataType_Note = 7,
  217. /// 收藏列表类型 8 collection收藏
  218. CollectDataType_Collect = 8,
  219. /// 收藏列表类型 9站内信
  220. CollectDataType_InterMail = 9,
  221. /// 收藏列表类型 10小组
  222. CollectDataType_Group = 10,
  223. /// 收藏列表类型 11 会议
  224. CollectDataType_Meeting = 11,
  225. /// 收藏列表类型 12 收藏文件夹
  226. CollectDataType_CollectFile = 12,
  227. /// 收藏列表类型 13 笔记文件夹
  228. CollectDataType_NoteFile = 13,
  229. /// 收藏列表类型 14 审批
  230. CollectDataType_Approval = 14,
  231. /// 收藏列表类型 300 电脑上传文件
  232. CollectDataType_PcFile = 300,
  233. }CollectDataType;
  234. typedef enum CreateNoteBookType{
  235. /// 新建笔记
  236. CreateNoteBookType_Create = 1,
  237. /// 修改笔记
  238. CreateNoteBookType_Modify = 2,
  239. /// 转发 我的二位码
  240. CreateNoteBookType_MyCode = 3,
  241. /// 转发 文章
  242. CreateNoteBookType_Article = 4,
  243. /// 转发 审批
  244. CreateNoteBookType_Approval = 5,
  245. /// 转发 话题
  246. CreateNoteBookType_Topic = 6,
  247. /// 转发 小组
  248. CreateNoteBookType_Group = 7,
  249. /// 转发 站内信
  250. CreateNoteBookType_InterLeter = 8,
  251. /// 转发 通知
  252. CreateNoteBookType_Notice = 9,
  253. }CreateNoteBookType;
  254. typedef enum ChatMsgNoticeType_Source{
  255. /// 来自 通知
  256. ChatMsgNoticeType_Source_1 = 1,
  257. /// 来自 站内信
  258. ChatMsgNoticeType_Source_2 = 2,
  259. }ChatMsgNoticeType_Source;
  260. /// 2话题 3 收藏 4笔记 5通知 6站内信 7小组 12 收藏文件夹 13笔记文件夹 14工作流审批 21 新版话题 100 文章 300 文件 301图片 400会议纪要 500会议详情 601 财务报表 602人事报表 603 出版报表
  261. typedef enum CollectModelType{
  262. CollectModel_Text = 1,
  263. CollectModel_Toipc = 2,
  264. CollectModel_Collect = 3,
  265. CollectModel_NoteBook = 4,
  266. CollectModel_Notice = 5,
  267. CollectModel_InterMail = 6,
  268. CollectModel_Group = 7,
  269. // CollectModel_meet = 8,
  270. CollectModel_meetMian = 8,
  271. CollectModel_CollectFile = 12,
  272. CollectModel_NoteFile = 13,
  273. CollectModel_work = 14,
  274. CollectModel_NoSignMail = 18,
  275. CollectModel_NewTopic = -4,
  276. CollectModel_TopicBooK = 41,
  277. CollectModel_TopicSubBooK = 42,
  278. CollectModel_Aritle = 100,
  279. CollectModel_MediaAritle = 101,
  280. // CollectModel_CollectFileAll = 120,
  281. // CollectModel_NoteFileAll = 130,
  282. CollectModel_Teacher = 180,
  283. CollectModel_Organization = 190,
  284. CollectModel_Verify = 240,
  285. CollectModel_ReplayMe = 250,
  286. CollectModel_file = 300,
  287. CollectModel_Image = 301,
  288. // CollectModel_meetMian = 8,
  289. CollectModel_meetDetail = 500,
  290. CollectModel_financeCount = 601,
  291. CollectModel_affairsCount = 602,
  292. CollectModel_publishCount = 603,
  293. CollectModel_ShouJian = 800,
  294. CollectModel_StoreBook = 20,
  295. CollectModel_StoreCousre = 30,
  296. CollectModel_StoreSound = 40,
  297. CollectModel_StoreVideo = 60,
  298. CollectModel_StoreMing = 90,
  299. CollectModel_StoreGongzh = 110,
  300. CollectModel_StoreQiKan = 120,
  301. CollectModel_Chat = 10,
  302. /// 我审批的
  303. CollectModel_MeShen = 15,
  304. /// 我发出的
  305. CollectModel_MeSend = 16,
  306. /// 抄送我的
  307. CollectModel_MeChao = 17,
  308. /// 系统审批
  309. CollectModel_System = 19,
  310. /// 话题本和小组
  311. CollectModel_GroupTopic = 1000,
  312. }CollectModelType;
  313. /// 0 新建 1 回复 2 回复全部 3 编辑
  314. typedef enum MailReplayType{
  315. /// 新建
  316. MailReplayCreate = 0,
  317. /// 回复
  318. MailReplayOne = 1,
  319. /// 回复全部
  320. MailReplayAll = 2,
  321. /// 编辑
  322. MailReplayEdit = 3,
  323. }MailReplayType;
  324. /// 0 文章 1 话题 2 通知 3 笔记
  325. typedef enum ZanListPageType{
  326. /// 来自 文章
  327. ZanListPageType_Article = 0,
  328. /// 来自 话题
  329. ZanListPageType_Topic = 1,
  330. /// 来自 通知
  331. ZanListPageType_Notice = 2,
  332. /// 来自 笔记
  333. ZanListPageType_NoteBook = 3,
  334. }ZanListPageType;
  335. ///站内信操作
  336. typedef enum InterLeterHanderType{
  337. /// 创建站内信
  338. InterLeterHanderType_Create = 1,
  339. /// 修改站内信
  340. InterLeterHanderType_Modify = 2,
  341. /// 回复站内信
  342. InterLeterHanderType_Replay = 3,
  343. }InterLeterHanderType;
  344. typedef enum InterLeterDetialType{
  345. InterLeterDetialType_Sign= 1,
  346. InterLeterDetialType_NoSign = 2,
  347. InterLeterDetialType_Replay = 3,
  348. }InterLeterDetialType;
  349. typedef enum NoticeDetailType{
  350. NoticeDetailType_Detail= 1,
  351. NoticeDetailType_DraftBox = 2,
  352. }NoticeDetailType;
  353. typedef enum MailListByZuPageType {
  354. MailListByZuPageType_Sys = 1, // 系统默认组
  355. MailListByZuPageType_custom = 2, // 自定义组
  356. }MailListByZuPageType;
  357. typedef enum MailListDataModelType {
  358. /// 默认分组
  359. MailListByZu_SysGroup = 1,
  360. /// 自定义组
  361. MailListByZu_CusGroup = 2,
  362. ///默认分组成员
  363. MailListByZu_SysUser = 3,
  364. ///自建分组成员
  365. MailListByZu_CusUser = 4,
  366. }MailListDataModelType;
  367. //历史搜索记录
  368. typedef enum HistorySearchType {
  369. /// 首页
  370. HistorySearchType_Home = 1,
  371. /// 信源
  372. HistorySearchType_XinYuan = 2,
  373. /// 通知
  374. HistorySearchType_Notice = 3,
  375. /// 站内信
  376. HistorySearchType_InterMail = 4,
  377. /// 通讯录
  378. HistorySearchType_MailList = 5,
  379. /// 话题
  380. HistorySearchType_Topic = 6,
  381. /// 小组
  382. HistorySearchType_Group = 7,
  383. /// 收藏
  384. HistorySearchType_Collect = 8,
  385. /// 笔记
  386. HistorySearchType_Note = 9,
  387. ///工作
  388. HistorySearchType_Work = 10,
  389. ///文件夹
  390. HistorySearchType_FileJia = 11,
  391. ///联系人
  392. HistorySearchType_User = 12,
  393. ///
  394. HistorySearchType_Common = 13,
  395. ///
  396. HistorySearchType_SourceGroup = 14,
  397. ///
  398. HistorySearchType_TopicGroupManager = 15,
  399. ///
  400. HistorySearchType_Reply = 16,
  401. ///
  402. HistorySearchType_LikeList = 17,
  403. ///
  404. HistorySearchType_Square = 18,
  405. ///
  406. HistorySearchType_NoteTopicDraft = 19,
  407. ///
  408. HistorySearchType_SynopsisUser = 20,
  409. ///
  410. HistorySearchType_GroupDraft = 21,
  411. ///
  412. HistorySearchType_GroupInfoUser = 22,
  413. ///
  414. HistorySearchType_NoteFolderSearch = 23,
  415. ///
  416. HistorySearchType_BookStore = 24,
  417. ///
  418. HistorySearchType_BookLabel = 25,
  419. ///
  420. HistorySearchType_BookBillBoard = 26,
  421. ///
  422. HistorySearchType_BookMing = 27,
  423. ///
  424. HistorySearchType_BookGongZH = 28,
  425. }HistorySearchType;
  426. /// 书城
  427. typedef enum BookHomeType{
  428. BookHomeA = 0,
  429. BookHomeB = 1,
  430. BookHomeC = 2,
  431. BookHomeD = 3,///名栏
  432. BookHomeE = 4,///显示全部
  433. BookHomeF = 5,
  434. }BookHomeType;
  435. typedef enum BookChanelType{
  436. BookChanelPublic = 700, ///公众号
  437. BookChanelVideo = 710, ///视频
  438. BookChanelQiKan = 720, ///期刊
  439. BookChanelBook = 730, ///图书
  440. }BookChanelType;
  441. typedef enum MediaType{
  442. MediaBookType = 20, ///书
  443. MediaCourseType = 30, ///课程
  444. MediaMusicType = 40, ///音频
  445. // MediaQikanType = 50, ///期刊
  446. MediaVideoType = 60, ///视频
  447. MediaMingType = 90, ///名栏
  448. MediaGongzhType = 110, ///公众号
  449. MediaQikanType = 120, ///期刊
  450. MediaArticeType = 100, ///文章
  451. MediaMediaArticeType = 101, ///文章
  452. }MediaType;
  453. typedef enum PlayModelType{
  454. PlaylistType = 0, ///列表
  455. PlaynomalType = 1, ///顺序
  456. PlayRandomType = 2, ///随机
  457. PlayOnlyType = 3, ///单集
  458. }PlayModelType;
  459. #define CHATMOVESUCCESS @"CHATMOVESUCCESS"
  460. #define NOTIFI_ChaoSongRen @"NOTIFI_ChaoSongRen"
  461. #define NOTIFI_ApprovalRen @"NOTIFI_ApprovalRen"
  462. #define NOTIFI_NoteBookSelectNoteBook @"NOTIFI_NoteBookSelectNoteBook"
  463. #define NOTIFI_SelectPeopleAndDepartMent @"NOTIFI_SelectPeopleAndDepartMent"
  464. #define NOTIFI_SELECTCREATENOTEFOLDER @"NOTIFI_SELECTCREATENOTEFOLDER"
  465. #define BOOKMUSICSELECTARRAY @"BOOKMUSICSELECTARRAY"
  466. #define NEWFILESUCCESS @"NEWFILESUCCESS"
  467. #define NOTEBOOKSAVE @"NOTEBOOKSAVE"
  468. #endif /* FwzAppConfig_h */