PhbAppConfig.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. //
  2. // PhbAppConfig.h
  3. // smartRhino
  4. //
  5. // Created by 潘洪波 on 2019/11/18.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #ifndef PhbAppConfig_h
  9. #define PhbAppConfig_h
  10. #ifndef kScreenWidth
  11. #define kScreenWidth [UIScreen mainScreen].bounds.size.width
  12. #endif
  13. #ifndef kScreenHeight
  14. #define kScreenHeight [UIScreen mainScreen].bounds.size.height
  15. #endif
  16. #ifndef UIColorHex
  17. #define UIColorHex(_hex_) [UIColor hexStringToColor:((__bridge NSString *)CFSTR(#_hex_))]
  18. #endif
  19. ///广西环信账号
  20. //#define kHuanXinAppKey @"1104200313107569#gxcbcm" //环信appkey
  21. #define kHuanXinAppKey @"1126191023010818#smartrhino-tederen123" //环信appkey
  22. #define kHuanXinApnsName @"smartRhino_tederen" //环信推送证书名称
  23. ///微信广西
  24. #define wxAppKey @"wxbc44299578fee300"
  25. #define wxAppSecret @"17dcdb2fffc15728cb392485a5fc41ea"
  26. ///友盟Key
  27. #define UMengAppKey @"5e7426ef570df3d20e00019e"
  28. ///QQ
  29. #define QQAppKey @"1110276123"
  30. #define QQAppSecret @"AfJ6aYxxWSsY1ilQ"
  31. ///微博
  32. #define WBAppKey @"1039156716"
  33. #define WBAppSecret @"51bf65ceb9fe47410204a71d5deec300"
  34. #define WeiChatSuccess @"WeiChatSuccess"
  35. #import "JSONModelLib.h"
  36. #import "UIColor+HexCustomer.h"
  37. #import "NSDictionary+NilSafe.h"
  38. #import "NSArray+NilSafe.h"
  39. #import "EMDateHelper.h"
  40. /// api
  41. #define API_BLACKLIST_LIST @"/api/app/blacklist/list" //用户黑名单
  42. #define API_BLACKLIST_ADD @"/api/app/blacklist/add" //加入黑名单
  43. #define API_BLACKLIST_REMOVE @"/api/app/blacklist" //移除黑名单
  44. #define API_NOTICE_LIST @"/api/app/notice/list-page" //通知列表
  45. #define API_NOTICE_ADD @"/api/app/notice/add" //添加通知
  46. #define API_NOTICE_EDIT @"/api/app/notice/edit" //修改通知
  47. #define API_NOTICE_RECALL @"/api/app/notice/recall/" //撤销通知
  48. #define API_GROUPCHAT_ADD @"/api/app/group-chat/add" //添加群聊
  49. #define API_GROUPCHAT_UPDATE @"/api/app/group-chat/update" //更新群聊信息 名称、介绍、群头像
  50. #define API_CHATRECORD_ADD @"/api/app/chat-record/add" //新增会话
  51. ///添加文件夹 通知
  52. #define API_NOTICE_ADDFind @"/api/app/notice-folder/add" //添加文件夹通知
  53. /// 文件夹排序 通知 (MiddleIdFirst:0, MiddleIdSecond:0)
  54. #define API_Find_Sort @"/api/app/middle/sort"
  55. /// 文件夹置顶 通知
  56. #define API_Find_Top @"/api/app/middle/"
  57. /// 文件夹删除记录 文件夹类型 1 通知 2话题 3 收藏 4笔记 5 普通站内信 6匿名站内信 10聊天 //{"MiddleIds": [ 0 ],"FolderType": 0}
  58. #define API_Find_DeleteRecord @"/api/app/middle/delete"
  59. #define API_Find_DeleteRecord_All @"/api/app/middle/delete-all/"
  60. /// 文件夹恢复删除 通知 //{"MiddleIds": [ 0 ],"FolderType": 0}
  61. #define API_Find_DeleteRecord_Redo @"/api/app/middle/recover-delete/"
  62. #define API_Find_Recover_All @"/api/app/middle/recover-all/"
  63. ///文件夹移动 通知 //{"Ids": [ 0 ],"ParentId": 0}
  64. #define API_Find_Move @"/api/app/middle/move"
  65. ///文件夹重命名 通知 //{"Id": “”,"FolderName": “”}
  66. #define API_Find_ReName @"/api/app/middle/update"
  67. ///查询文件夹 通知 //{
  68. // "ParentId": 0,
  69. // "TypeId": 0,
  70. // "UserId": 0,
  71. // "FolderIds": [
  72. // 0
  73. // ]
  74. //}
  75. #define API_Find_Find @"/api/app/middle/search-folder"
  76. #define API_APP_Middle_Enjoy_Defaul @"/api/app/middle/enjoy-default/"
  77. #define API_APP_Middle_Search_Note_Folder @"/api/app/middle/search-note-folder"
  78. #define API_ChatHome_Seaerch @"/api/app/elastics/search"
  79. #define API_ShouCangList @"/api/app/collection/search"
  80. #define API_Check_Find @"/api/app/middle/find-folder-info/"
  81. #define API_ModiFy_Find @"/api/app/middle/update-role"
  82. #define API_NoteBook @"/api/app/note/search"
  83. #define API_NoteBook_Detail @"/api/app/note/"
  84. #define API_NoteBook_ZanList @"/api/app/note/praise-page"
  85. #define API_NoteBook_Zan @"/api/app/note/laud"
  86. #define API_NoteBook_Comment @"/api/app/note/add-comment"
  87. #define API_NoteBook_CommentList @"/api/app/note/comment-list"
  88. #define API_NoteBook_Comment @"/api/app/note/add-comment"
  89. #define API_CreateNoteBook @"/api/app/note/add"
  90. #define API_NoteBook_Modify @"/api/app/note/update"
  91. #define API_CreateCollect @"/api/app/collection/add"
  92. #define API_InterLetter @"/api/app/missive/search"
  93. #define API_InterLetterDetail @"/api/app/missive/get/"
  94. #define API_InterLetterModify @"/api/app/missive/add"
  95. #define API_InterLetterZan @"/api/app/missive/analyze"
  96. ///查询未处理条数
  97. #define API_Verti_Number @"/api/app/admin-verify/count"
  98. ///修改
  99. #define API_Verti_Modify @"/api/app/admin-verify/update"
  100. ///清空
  101. #define API_Verti_Clear @"/api/app/admin-verify/delete"
  102. ///根据用户查询
  103. #define API_Verti_Check @"/api/app/admin-verify/search"
  104. #define API_DeleteCustomSection @"/api/app/address-book-group-user/delete"
  105. #define API_Notice_Detail @"/api/app/notice/app-detail/"
  106. #define API_Notice_Praise @"/api/app/notice/praise-page"
  107. #define API_Notice_Comment_List @"/api/app/notice-comment/list"
  108. #endif /* PhbAppConfig_h */