AppConfig.h 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  1. //
  2. // AppConfig.h
  3. // DSH
  4. //
  5. // Created by wzx on 2018/9/24.
  6. // Copyright © 2018年 WZX. All rights reserved.
  7. //
  8. #ifndef AppConfig_h
  9. #define AppConfig_h
  10. /**
  11. 用户相关
  12. */
  13. #define kUserNickName USERDEFAULTSGET(@"nickname")
  14. #define kUserHeadImageURL USERDEFAULTSGET(@"headimgurl")
  15. #define kUserDefaultHeadImage [UIImage imageNamed:@"imagePlaceholder"]
  16. #define kUserId USERDEFAULTSGET(@"userId")
  17. #define kIsLogin [[NSUserDefaults standardUserDefaults] boolForKey:@"isLogin"]
  18. #define kIsVip [[NSUserDefaults standardUserDefaults] boolForKey:@"isVip"]
  19. #define kToken USERDEFAULTSGET(@"LOGINTOKEN")
  20. #define kSchedule USERDEFAULTSGET(@"kSchedule")
  21. #define kPlaceHolderImage [UIImage imageNamed:@"占位图"]
  22. #define kRegisterId USERDEFAULTSGET(@"registerId")
  23. #define kisApprove USERDEFAULTSGET(@"kisApprove")
  24. /**
  25. ZDTostView
  26. */
  27. #define SHOWMESSAGE(a) [ZDTostView showLoadingMessage:a inView:[UIApplication sharedApplication].keyWindow];
  28. #define SHOWERROR(a) [ZDTostView showErrorMessage:a inView:[UIApplication sharedApplication].keyWindow];
  29. #define SHOWERROR2(a) [ZDTostView showErrorMessage2:a inView:[UIApplication sharedApplication].keyWindow];
  30. #define SHOWSUCCESS(a) [ZDTostView showSucceedMessage:a inView:[UIApplication sharedApplication].keyWindow];
  31. #define SHOWWAIT(a) [ZDTostView showWaitMessage:a inView:[UIApplication sharedApplication].keyWindow];
  32. //#define SHOWLOADING [ZDTostView showLoadingMessage:@"加载中..." inView:[UIApplication sharedApplication].keyWindow];
  33. #define SHOWLOADING [ZDTostView showLoadingMessage:@"" inView:[UIApplication sharedApplication].keyWindow];
  34. #define REMOVESHOW [ZDTostView removeLoadingTost];
  35. /* 其他 */
  36. /// 其他
  37. #define HTTP_BaseURL @""//立宇台式
  38. #define HTTP_BaseURLH5 @""
  39. #define USERDEFAULTSSET(a,b) [[NSUserDefaults standardUserDefaults] setObject:a forKey:b];[[NSUserDefaults standardUserDefaults] synchronize]
  40. #define USERDEFAULTSGET(a) [[NSUserDefaults standardUserDefaults] objectForKey:a]
  41. #define WS(weakSelf) __weak __typeof (&*self)weakSelf = self
  42. #define IMG(name) [UIImage imageNamed:name]
  43. #define WeakSelf(type) __weak __typeof(type) weak##type = type;//弱引用
  44. #define StrongSelf(type) __strong __typeof(self) strongself = type;//强引用
  45. #define kIsHaveBang [ZYCTool isHaveBang]//判断是否是刘海屏系列
  46. //高适配
  47. #define Height_Layout(a) kIsHaveBang?a:a*HEIGHT_SCALE
  48. //宽适配
  49. #define Width_Layout(a) kIsHaveBang?a:a*WIDTH_SCALE
  50. /**
  51. 这个.h文件用来处理常用define宏定义
  52. 方法简写的方法名前面都已m开头
  53. 更多功能已经使用工具类utils.h中
  54. */
  55. /** 调试模式下输入NSLog,发布后不再输入 (打印信息包括 文件名 + 打印行数 + 打印方法 + 打印内容) */
  56. #if DEBUG
  57. #define NSLog(s , ... ) NSLog(@"[%@ in line:%d %s] \n %@", [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__,__FUNCTION__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
  58. #define debugMethod() NSLog(@"%s", __func__)
  59. #else
  60. #define NSLog(FORMAT, ...)
  61. #define debugMethod()
  62. #endif
  63. //单例宏
  64. // .h
  65. #define TDShareInstance_interface(class) +(instancetype) shared##class;
  66. // .m
  67. #define TDShareInstance_implementation(class) \
  68. static class *_instance; \
  69. \
  70. +(id) allocWithZone : (struct _NSZone *) zone { \
  71. static dispatch_once_t onceToken; \
  72. dispatch_once(&onceToken, ^{ \
  73. _instance = [super allocWithZone:zone]; \
  74. }); \
  75. \
  76. return _instance; \
  77. } \
  78. \
  79. +(instancetype) shared##class \
  80. { \
  81. if (_instance == nil) { \
  82. _instance = [[class alloc] init]; \
  83. } \
  84. \
  85. return _instance; \
  86. }
  87. #define kIsLoginToPush \
  88. \
  89. if(!kIsLogin) {\
  90. [ZYCTool alertControllerTwoButtonWithTitle:@"请先登录" message:@"" target:self notarizeButtonTitle:nil cancelButtonTitle:nil notarizeAction:^{\
  91. LoginViewController *loginController = [LoginViewController new];\
  92. [self.navigationController pushViewController:loginController animated:true];\
  93. } cancelAction:^{\
  94. }];\
  95. return;\
  96. }
  97. //weakSelf 宏定义
  98. #define WEAKSELF __weak __typeof(&*self)weakSelf = self;
  99. #define STRONGSELF __strong __typeof(weakSelf) strongSelf = weakSelf;
  100. /** ------------------ 快捷设置 ------------------ */
  101. #define mSetFrameY(view, newY) view.frame = CGRectMake(view.frame.origin.x, newY, view.frame.size.width, view.frame.size.height)
  102. #define mSetFrameX(view, newX) view.frame = CGRectMake(newX, view.frame.origin.y, view.frame.size.width, view.frame.size.height)
  103. #define mSetFrameH(view, newH) view.frame = CGRectMake(view.frame.origin.x, view.frame.origin.y, view.frame.size.width, newH)
  104. #define mSetFrameW(view, newW) view.frame = CGRectMake(view.frame.origin.x, view.frame.origin.y, newW, view.frame.size.height)
  105. /** ------------------ 颜色相关 ------------------ */
  106. #define kMainColor [UIColor colorWithRed:0/255.0 green:123/255.0 blue:221/255.0 alpha:1]
  107. #define kBackgroundColor [UIColor hexStringToColor:@"eeeeee"]
  108. #define k3 [UIColor hexStringToColor:@"333333"]
  109. #define k6 [UIColor hexStringToColor:@"666666"]
  110. #define k9 [UIColor hexStringToColor:@"999999"]
  111. #define LINEBGCOLOR [UIColor hexStringToColor:@"EAEAEA"]
  112. #endif /* AppConfig_h */
  113. //简写
  114. #define _Notif [NSNotificationCenter defaultCenter]
  115. #define _UD [NSUserDefaults standardUserDefaults]
  116. // 是否为空对象
  117. #define MHObjectIsNil(__object) ((nil == __object) || [__object isKindOfClass:[NSNull class]])
  118. //#define BaseUrl @"http://111.12.8.69:83"///广西
  119. //#define HtmlUrl @"http://111.12.8.69:82"
  120. #define BaseUrl @"https://apk.tederen.com/service"
  121. #define HtmlUrl @"https://apk.tederen.com/admin"
  122. #define MyChannelUrl @"/api/v1/channels/1"
  123. #define ContentUrl @"/api/v1/contents/1"
  124. #define MainSearchUrl @"/api/v1/contents/1325"
  125. #define Host(x) [NSString stringWithFormat:@"%@%@",BaseUrl,x]
  126. #define HtmlHost(x) [NSString stringWithFormat:@"%@%@",HtmlUrl,x]
  127. #pragma mark - 应用
  128. #pragma mark - 用户系统
  129. #define LoginSendCodeGet @"/api/app/user/sendSmsCode"
  130. #define LoginPost @"/api/app/user/signin"
  131. #define UserDetailGet @"/api/app/user/detail/"
  132. #define UpdateUserInfoPUT @"/api/app/user/update/"
  133. ///用户修改手机号 发送验证码
  134. #define Modify_UserPhone_SendCode_Post @"/api/app/user/send-sms-code"
  135. ///用户修改手机号码
  136. #define Modify_UserPhone_Post @"/api/app/user/update-user-phone"
  137. ///用户修改邮箱
  138. #define Modify_UserEMail_Post @"/api/app/user/update-user-email"
  139. ///用户修改邮箱 发送验证码
  140. #define Modify_UserEMail_SendCode_Post @"/api/app/user/send-email-verify-code"
  141. ///查询微信是否绑定手机
  142. #define API_App_User_Opend_Id @"/api/app/user/find-opend-Id/"
  143. #define API_App_Set_Opend_Id @"/api/app/user/set-opend-Id/"
  144. ///IM用户扫一扫
  145. #define SaoYiSao_Post @"/api/app/user/guid"
  146. ///IM群扫一扫
  147. #define SaoYiSao2_Post @"/api/app/group-chat-user/"
  148. ///小组扫一扫
  149. #define SaoYiSao3_Post @"/api/app/group/"
  150. ///单个文件上传
  151. #define Modify_UserImage_Post @"/api/app/file/upload"
  152. ///多个文件上传
  153. #define Modify_UserImages_Post @"/api/app/file/uploads"
  154. #pragma mark - 首页
  155. #define API_APP_PAGE_CATHEDRA @"/api/app/page/cathedra"
  156. #define API_APP_PAGE_GooDText @"/api/app/page/day-good-text"
  157. #define API_APP_PAGE_Teacher @"/api/app/page/teacher"
  158. #define API_APP_PAGE_WE_BOOK @"/api/app/page/day-we-book"
  159. #define API_APP_RANDOM_DAY_Skill @"/api/app/page/random-day-skill"
  160. #define API_APP_DAY_Skill @"/api/app/page/day-skill"
  161. #pragma mark - 书城
  162. #define API_APP_BOOK_City @"/api/app/page/book-city"
  163. #define API_APP_PAGE_Lable @"/api/app/page/lable"
  164. #define API_APP_User_Like @"/api/app/page/user-like"///猜你喜欢
  165. #define API_APP_PAGE_Category @"/api/app/page/category"
  166. #define API_APP_Content_Navi_List @"/api/app/page/content-navigation-list"
  167. #define API_APP_PAGE_Ranking @"/api/app/page/ranking"
  168. #define API_APP_PAGE_Star @"/api/app/page/star"
  169. #define API_APP_PAGE_Star_page @"/api/app/page/star-page"
  170. #define API_APP_PAGE_Navigation_Search @"/api/app/page/navigation-search"///内容导航筛选
  171. #define API_APP_PAGE_Channel @"/api/app/page/channel"
  172. #define API_APP_PAGE_Channel_Category @"/api/app/page/channel-category/"
  173. #define API_APP_PAGE_Channel_Category_Media @"/api/app/page/channel-category-media"
  174. #define API_APP_PAGE_Sku @"/api/app/page/sku"
  175. #define API_APP_Media @"/api/app/media/"
  176. #define API_APP_Media_Book @"/api/app/media/book/"
  177. #pragma mark - 小组
  178. #define API_APP_GROUP_Group_Category @"/api/app/group/group-category/"
  179. #define API_APP_GROUP_Category_list @"/api/app/group/category-list/"
  180. #pragma mark - 设置消息
  181. #define Seting_PrivateLetter_Post @"/api/app/user/update-user-private-letter"
  182. #define Seting_Notice_Post @"/api/app/user/update-user-notice"
  183. #define Seting_Reply_Post @"/api/app/user/update-user-reply"
  184. #define Seting_Mute_Post @"/api/app/user/update-user-mute"
  185. #define Seting_Shake_Post @"/api/app/user/update-user-shake"
  186. #define Seting_FeedBack_Post @"/api/app/Feedback/add"
  187. #pragma mark - 评论 点赞通用接口 状态 10 会议纪要 0 文章 1 话题 2 通知 3 笔记
  188. ///评论列表
  189. #define API_APP_Comment_List @"/api/app/comment/list"
  190. ///点赞列表
  191. #define API_APP_Analyze_List @"/api/app/analyze/list"
  192. ///点赞 AnalyzeType (1 文章点赞,2评论点赞,3收藏,4转发) TypeValue 10 会议纪要 100 文章 2 话题 5 通知 4 笔记 6站内信
  193. #define API_APP_Analyze_Set @"/api/app/analyze/set"
  194. ///添加评论
  195. #define API_APP_Comment_Add @"/api/app/comment/add"
  196. #define API_APP_Comment_Delete @"/api/app/comment/delete"
  197. #define API_APP_Comment_Update @"/api/app/comment/update"
  198. ///阅读列表
  199. #define API_APP_Visit_Page @"/api/app/visit/page"
  200. #pragma mark - 信源
  201. /// 跳转到聊天页面
  202. #define PUSHEMCHATVIEWCOTROLLER @"PUSHEMCHATVIEWCOTROLLER"
  203. /// 跳转到小组页面
  204. #define PUSHTDGROUPCOTROLLER @"PUSHTDGROUPCOTROLLER"
  205. ///侧滑跳转
  206. #define DRAWERPUSHVC @"DRAWERPUSHVC"
  207. #define VCINDEX @"VCINDEX"
  208. #define API_APP_Often_Contact_Search @"/api/app/often-contact/search/"
  209. #define AddressBookGroup_Search_Post @"/api/app/user/search"
  210. /// 查找好友
  211. #define API_APP_User_Find_friends @"/api/app/user/find-friends/"
  212. #define API_APP_User_Group_Chat_Search @"/api/app/user/group-chat/"
  213. #define API_APP_User_Chat_List @"/api/app/group-chat/list"
  214. /// 添加好友
  215. #define API_APP_Admin_Verify_Add_Friend @"/api/app/admin-verify/add-friend"
  216. #define API_APP_User_User_Uread_Count @"/api/app/user/user-uread-count"
  217. /// 删除 自建分组
  218. #define AddressBookGroup_Get_Delete @"/api/app/address-book-group/"
  219. /// 修改 自建分组名称
  220. #define AddressBookGroup_Update_Post @"/api/app/address-book-group/update"
  221. /// 获取 通讯录列表
  222. #define AddressBookGroup_Get_Post @"/api/app/address-book-group/list"
  223. /// 添加 自建分组
  224. #define AddressBookGroup_Add_Post @"/api/app/address-book-group/add"
  225. /// 获取用户通讯录组
  226. #define AddressBookGroup_ListGroup_Post @"/api/app/address-book-group/list-group"
  227. /// 默认分组获取详情
  228. #define AddressBookGroup_DepartemntDetail_Post @"/api/app/department/user-list"
  229. /// 删除自建分组成员 单独
  230. #define AddressBookGroupUser_Delete_Delete @"/api/app/address-book-group-user/"
  231. /// 获取 自建分组成员列表
  232. #define AddressBookGroupUser_Get_Post @"/api/app/address-book-group-user/list"
  233. /// 添加 自建分组成员 单独
  234. #define AddressBookGroupUser_Add_Post @"/api/app/address-book-group-user/add" // addressBookGroupId
  235. /// 添加 自建分组成员 移动
  236. #define AddressBookGroupUser_Move_Post @"/api/app/address-book-group-user/move"
  237. /// 添加 自建分组成员 排序
  238. #define AddressBookGroupUser_Sort @"/api/app/address-book-group/sort"
  239. ///最近聊天
  240. #define API_APP_Often_Contact_Alllist @"/api/app/often-contact/all-list"
  241. /// 新获取用户通讯录组
  242. #define API_APP_User_Link @"/api/app/user/user-link"
  243. /// 添加 自建分组成员 群加
  244. #define AddressBookGroupUser_GroupAdd_Post @"/api/app/address-book-group/add-address-book-user"
  245. #define AddressBookUser_Detail_Get @"/api/app/user/detail/"
  246. /// 获取聊天工作组列表
  247. #define Often_Contact_List @"/api/app/often-contact/list/"
  248. /// 创建工作组
  249. #define AddIndividual_Group_Post @"/api/app/individual-group/add"
  250. /// 删除工作组
  251. #define DELETEIndividual_Group_Post @"/api/app/individual-group/delete"
  252. /// 重命名工作组
  253. #define PutIndividual_Group_Put @"/api/app/individual-group/edit"
  254. /// 置顶工作组
  255. #define PutIndividual_Group_isTop_Put @"/api/app/individual-group/is-top"
  256. /// 移动聊天
  257. #define Often_Contact_Move_Post @"/api/app/often-contact/move"
  258. /// 置顶聊天
  259. #define Often_Contact_isTop_Post @"/api/app/often-contact/is-top"
  260. /// 删除聊天
  261. #define Often_Contact_Delete_Post @"/api/app/often-contact/delete"
  262. ///添加会话
  263. #define Often_Contact_Add_Post @"/api/app/often-contact/add"
  264. /// 添加聊天信息到工作组
  265. #define AddOften_Contact_Post @"/api/app/often-contact/add"
  266. #define AddChaoSongRen_Post @"/api/app/user/find"
  267. #define API_APP_User_Middle @"/api/app/user/user-middle"
  268. /// 群信息
  269. #define Group_chat_info @"/api/app/group-chat-user/group-chat-user-search"
  270. /// 群禁言
  271. #define Group_chat_in_mute @"/api/app/group-chat/in-mute"
  272. /// 群解除禁言
  273. #define Group_chat_remove_mute @"/api/app/group-chat/remove-mute"
  274. /// 群是否管理员同意
  275. #define Group_chat_is_admin @"/api/app/group-chat/up-is-admin"
  276. /// 修改群信息
  277. #define Group_chat_updata @"/api/app/group-chat/update"
  278. /// 添加群信成员
  279. #define Group_chat_add_users @"/api/app/group-chat/add-users"
  280. /// 删除群聊成员
  281. #define Group_chat_remove_users @"/api/app/group-chat/remove-users"
  282. /// 聊天消息查询
  283. #define Chat_record_history @"/api/app/chat-record/history"
  284. /// 是否显示二维码
  285. #define API_App_Group_Chat @"/api/app/group-chat/"
  286. /// 是否免打扰
  287. #define Group_Chat_User_is_disturb @"/api/app/group-chat-user/up-is-disturb"
  288. /// 是否聊天置顶
  289. #define Group_Chat_User_is_top @"/api/app/group-chat-user/up-is-top"
  290. /// 回复列表
  291. #define API_APP_Reply_List @"/api/app/reply/list"
  292. #define API_APP_Reply_Praise @"/api/app/reply/praise"
  293. #pragma mark - Article
  294. ///列表/通知
  295. #define Article_Notice_list_Post @"/api/app/article/user-article-list"
  296. /// 文章/通知
  297. #define Article_Notice_Get @"/api/app/article/detail/"
  298. /// 文章 点赞 收藏 转发
  299. #define Article_Analyze_Post @"/api/app/article/analyze"
  300. /// 文章点赞分页数据
  301. #define Article_PraisePage_Post @"/api/app/article/praise-page"
  302. /// 文章 不感兴趣
  303. #define Article_Hander_Post @"api/app/blacklist-article/add"
  304. ///
  305. #define Article_Pindao_Post @"/api/app/article-group/list"
  306. #define Article_Pindao_User_Post @"/api/app/article-group-user/list"
  307. #define Article_Pindao_User_add @"/api/app/article-group-user/add"
  308. #define Article_Pindao_User_Delete @"/api/app/article-group-user/"
  309. #pragma mark - 站内信
  310. ///已读未读
  311. #define API_APP_Missive_Read @"/api/app/missive/read"
  312. ///撤回
  313. #define API_APP_Missive_Recall @"/api/app/missive/recall/"
  314. #pragma mark - 通知
  315. ///已读未读
  316. #define API_APP_Notice_Read @"/api/app/notice/read"
  317. #pragma mark -  小组
  318. ///查看小组列表
  319. #define APP_Group_Find @"/api/app/group/find"
  320. #define APP_Group_Lately_Group @"/api/app/group/lately-group"
  321. ///文件夹类型 1 通知 2话题 3 收藏 4笔记 5 普通站内信 6匿名站内信 7小组 10聊天
  322. #define APP_Middle_Add_Folder @"/api/app/middle/add-folder"
  323. ///新建小组
  324. #define APP_Group_Insert @"/api/app/group/insert"
  325. ///小组详情
  326. #define APP_Group_Detail @"/api/app/group/detail"
  327. ///修改小组信息
  328. #define APP_Group_Update @"/api/app/group/update"
  329. ///退出小组
  330. #define APP_Group_DELETE @"/api/app/group/"
  331. ///添加小组成员
  332. #define APP_Group_Insert_User @"/api/app/group/insert-user"
  333. ///删除小组成员
  334. #define APP_Group_DELETE_User @"/api/app/group/delete-user"
  335. ///设置小组成员权限
  336. #define APP_Group_Update_User @"/api/app/group/update-user"
  337. ///消息免打扰
  338. #define APP_Group_Set_Words @"/api/app/group/set-words/"
  339. ///只允许管理员发话题(禁言)
  340. #define APP_Group_Set_Admin @"/api/app/group/set-admin/"
  341. ///免打扰
  342. #define APP_Group_Set_Disturb @"/api/app/group/set-disturb/"
  343. ///添加话题
  344. #define APP_Topic_Add @"/api/app/topic/add"
  345. ///小组话题列表
  346. #define APP_Group_Search @"/api/app/group/search"
  347. #pragma mark - 话题
  348. ///话题分组列表
  349. #define APP_Topic_Group @"/api/app/topic/group"
  350. ///话题分组列表
  351. #define APP_Topic_List_Group @"/api/app/topic/list-group"
  352. ///添加话题分组
  353. #define APP_Topic_Add_Group @"/api/app/topic/add-group"
  354. ///根据分组ID查询用户
  355. #define APP_Topic_User_Get @"/api/app/topic/"
  356. ///添加成员
  357. #define APP_Topic_Add_Group_User @"/api/app/topic/add-group-user"
  358. ///根据话题分组Id删除数据
  359. #define APP_Topic_Topic_Delete_Group @"/api/app/topic/delete_group"
  360. ///点赞
  361. #define APP_Topic_Topic_Topic_Laud @"/api/app/topic/topic-laud"
  362. ///话题列表
  363. #define APP_Topic_List_Page @"/api/app/topic/list-page"
  364. #define API_APP_Topic_Page @"/api/app/topic/page"
  365. ///根据ID删除话题分组成员
  366. #define APP_Topic_Group_User @"/api/app/topic/group-user"
  367. ///根据ID移动到话题分组
  368. #define APP_Topic_Move @"/api/app/topic/move"
  369. ///获取用户共享文件夹
  370. #define APP_Topic_Common_Folders @"/api/app/topic/common-folders/"
  371. ///修改分组名称
  372. #define APP_Topic_Update_Group @"/api/app/topic/update-group"
  373. ///获取话题详情
  374. #define APP_Topic_App_Detail @"/api/app/topic/app-detail"
  375. ///评论分页显示数据
  376. #define APP_Topic_Topic_comment_List @"/api/app/topic/topic-comment-list"
  377. ///点赞分页显示数据
  378. #define APP_Topic_Praise_Page @"/api/app/topic/praise-page"
  379. ///评论点赞
  380. #define APP_Topic_Topic_Laud @"/api/app/topic/topic-laud"
  381. ///添加评论
  382. #define APP_Topic_Add_Comment @"/api/app/topic/add-comment"
  383. ///删除话题
  384. #define API_APP_Topic @"/api/app/topic/"
  385. ///修改话题
  386. #define API_APP_Topic_Update @"/api/app/topic/update"
  387. ///分组排序
  388. #define API_APP_Topic_Sort @"/api/app/topic/sort"
  389. #define API_APP_Middle_Search_Note_Folder @"/api/app/middle/search-note-folder"
  390. #pragma mark - 待办事项
  391. ///修改标签
  392. #define APP_Wait_Handle_Add_Updtae_Label @"/api/app/wait-handle/add-update-label"
  393. ///待办事项祥情
  394. #define APP_Wait_Handle_Detail @"/api/app/wait-handle/"
  395. ///标签列表
  396. #define APP_Wait_Handle_Page_Label @"/api/app/wait-handle/page-label"
  397. ///添加修改待办事项
  398. #define APP_Wait_Handle_Add_Update @"/api/app/wait-handle/add-update"
  399. ///待办事项列表
  400. #define APP_Wait_Handle_List @"/api/app/wait-handle/list"
  401. ///设置待办事项
  402. #define APP_Wait_Handle_Set @"/api/app/wait-handle/set/"
  403. ///删除待办事项
  404. #define APP_Wait_Handle_Delete @"/api/app/wait-handle/delete"
  405. ///删除标签
  406. #define APP_Wait_Handle_Delete_Label @"/api/app/wait-handle/delete-label"
  407. #pragma mark - 添加评论
  408. #define Artticle_AddConmment_Post @"/api/app/comment/add"
  409. #define Artticle_AddZan_Post @"/api/app/comment/laud"
  410. #define Artticle_ConmmentList_Post @"/api/app/comment/list"
  411. #define Article_Detail_Get @"/api/app/article/detail/"
  412. #pragma mark - ArticleGroup
  413. ///列表
  414. #define ArticleGroup_List_GET @"/api/app/article-group/list"
  415. #pragma mark - 搜索
  416. #define Search_Thesaurus_Post @"/api/app/thesaurus/get-thesaurus"
  417. #pragma mark - 工作
  418. ///
  419. #define HomeSlideImages_GET @"/api/app/slide/list"
  420. #define WorkFlowHomeData_Post @"/api/app/process/"
  421. #define WorkFlowAddApproval_Post @"/api/app/flow"
  422. #define WorkFlowNumberCount_Get @"/api/app/flow/count"
  423. #define WorkFlowHomeData2_Post @"/api/app/app-report/list"
  424. #define WorkGetFileFormIDString_Post @"/api/app/file/find"
  425. /// 待办事项
  426. #define WorkFlowWaitFlowHande_Get @"/api/app/flow/todo"
  427. #define WorkFlowFilter_Get @"/api/app/flow/filter"
  428. /// 审批 同意 驳回
  429. #define WorkFlowApproval_Post @"/api/app/flow/action/check"
  430. /// 催办
  431. #define WorkFlowApprovalComeon_Post @"/api/app/flow/action/remind"
  432. /// 上会
  433. #define WorkFlowApprovalMetting_Post @"/api/app/flow/action/meeting"
  434. /// 撤销上会
  435. #define WorkFlowApprovalCancelMetting_Post @"/api/app/flow/action/cancelMeeting"
  436. #define WorkFlowApprovalDownLoad_Post @"/api/app/flow/action/download"
  437. /// 获取车辆类型列表
  438. #define WorkFlowApp_Car_Type_Get @"/api/app/car/type"
  439. /// 车辆申请提交
  440. #define WorkFlowApp_Car_Actions_Order @"/api/app/car/actions/order"
  441. /// 重新提交
  442. #define WorkFlowApproval_ReAddPost @"/api/app/flow/action/reAdd"
  443. /// 转审
  444. #define WorkFlowApproval_OtherPost @"/api/app/flow/action/transferCheck"
  445. /// 出版数据 财务数据 人事数据
  446. #define WorkFlowlistData_Post @"/api/app/finance/chart"
  447. /// 出版数据 库存
  448. #define WorkFlowlistData_Store_Post @"/api/app/storehouse/chart"
  449. #define WorkFlowlistData_Publish_Post @"/api/app/sell/chart"
  450. #define WorkFlowlistData_Version_Post @"/api/app/print/chart"
  451. #define WorkFlowlistData_HR_Post @"/api/app/human-affairs/chart"
  452. /// 会议相关接口
  453. #define MeetingList @"/api/app/meeting/rooms"
  454. /// 预定会议
  455. #define ActionMeeting(id) [NSString stringWithFormat:@"/api/app/meeting/rooms/%@/actions/order",id]
  456. /// 会议记录
  457. #define MeetingSummary @"/api/app/meeting/summary"
  458. /// 会议纪要列表
  459. #define MeetingSummaryList @"/api/app/meeting/summary/list"
  460. /// 修改会议纪要
  461. #define UpdateMeeting(id) [NSString stringWithFormat:@"/api/app/meeting/summary/%@",id]
  462. /// 获取我的会议列表
  463. #define MeetingCurrentList @"/api/app/meeting/current"
  464. /// 获取会议详情
  465. #define MeetingDetail @"/api/app/meeting/"
  466. /// 获取我的历史会议列表
  467. #define MeetingHistorytList @"/api/app/meeting/history"
  468. /// 取消会议
  469. #define CancelMeeting(id) [NSString stringWithFormat:@"/api/app/meeting/%@/actions/cancel",id]
  470. /// 获取参会人员
  471. #define MeetingPersonnelList @"/api/app/meeting/actions/users"
  472. //#define ArticleGroup _ @""
  473. #define IMGURL(urlString) [BaseUrl stringByAppendingString:urlString]
  474. //whether this string is empty
  475. #define ISEmptyString(str) ([str isKindOfClass:[NSNull class]] || !str || str.length == 0)
  476. #define ISEmpty(content) ([content isKindOfClass:[NSNull class]])
  477. #define ISEmptyNumber(num) ([num isKindOfClass:[NSNull class]] || !num)
  478. #define SELECTNOTE @"SELECTNOTE"
  479. #define SELECTCOLLECT @"SELECTCOLLECT"
  480. #define CHATMENUBAR @"CHATMENUBAR"
  481. #define SELECTEXTENTSUCCESS @"SELECTEXTENTSUCCESS"
  482. #define SELECTETOPICBOOK @"SELECTETOPICBOOK"
  483. #define HOMESCROLLVIEWTOTOP @"HOMESCROLLVIEWTOTOP"
  484. #define TOPICDATAUPDATA @"TOPICDATAUPDATA"
  485. #define GROUPADDMESSAGE @"GROUPADDMESSAGE"
  486. #define WORKREUPDATA @"WORKREUPDATA"
  487. #define DELETECONVERSATIONMSG @"DELETECONVERSATIONMSG"
  488. #define SELECTMEETFECORD @"SELECTMEETFECORD"
  489. #define COLLECTSUCCESS @"COLLECTSUCCESS"
  490. #define MESSAGERETURNSUCCESS @"MESSAGERETURNSUCCESS"
  491. #define SHARERETURNSUCCESS @"SHARERETURNSUCCESS"
  492. #define MAILSELECT @"MAILSELECT"
  493. #define kGXScreenHeigh ([UIScreen mainScreen].bounds.size.height)
  494. #define kGXScreenWidth ([UIScreen mainScreen].bounds.size.width)
  495. #define kGXScreenSize ([UIScreen mainScreen].bounds.size)
  496. #define kGXScreenScale ([UIScreen mainScreen].scale)