AppConfig.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618
  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://192.168.0.113:8081"
  120. //#define HtmlUrl @"http://192.168.0.114:8081"
  121. #define BaseUrl @"https://apk.tederen.com/service"
  122. #define HtmlUrl @"https://apk.tederen.com"
  123. #define MyChannelUrl @"/api/v1/channels/1"
  124. #define ContentUrl @"/api/v1/contents/1"
  125. #define MainSearchUrl @"/api/v1/contents/1325"
  126. #define ShareUrl @"https://apk.tederen.com/"
  127. #define ShareHost(x) [NSString stringWithFormat:@"%@%@",ShareUrl,x]
  128. #define Host(x) [NSString stringWithFormat:@"%@%@",BaseUrl,x]
  129. #define HtmlHost(x) [NSString stringWithFormat:@"%@%@",HtmlUrl,x]
  130. #pragma mark - 用户系统
  131. #define LoginSendCodeGet @"/api/app/user/sendSmsCode"
  132. #define LoginPost @"/api/app/user/signin"
  133. #define UserDetailGet @"/api/app/user/detail/"
  134. #define UpdateUserInfoPUT @"/api/app/user/update/"
  135. ///用户修改手机号 发送验证码
  136. #define Modify_UserPhone_SendCode_Post @"/api/app/user/send-sms-code"
  137. ///用户修改手机号码
  138. #define Modify_UserPhone_Post @"/api/app/user/update-user-phone"
  139. ///用户修改邮箱
  140. #define Modify_UserEMail_Post @"/api/app/user/update-user-email"
  141. ///用户修改邮箱 发送验证码
  142. #define Modify_UserEMail_SendCode_Post @"/api/app/user/send-email-verify-code"
  143. ///查询微信是否绑定手机
  144. #define API_App_User_Opend_Id @"/api/app/user/find-opend-Id/"
  145. #define API_App_Set_Opend_Id @"/api/app/user/set-opend-Id/"
  146. ///IM用户扫一扫
  147. #define SaoYiSao_Post @"/api/app/user/guid"
  148. ///IM群扫一扫
  149. #define SaoYiSao2_Post @"/api/app/group-chat-user/"
  150. ///小组扫一扫
  151. #define SaoYiSao3_Post @"/api/app/group/"
  152. ///单个文件上传
  153. #define Modify_UserImage_Post @"/api/app/file/upload"
  154. ///多个文件上传
  155. #define Modify_UserImages_Post @"/api/app/file/uploads"
  156. #pragma mark - 首页
  157. #define API_APP_PAGE_CATHEDRA @"/api/app/page/cathedra"
  158. #define API_APP_PAGE_GooDText @"/api/app/page/day-good-text"
  159. #define API_APP_Chat_Hear_Speak @"/api/app/page/chat-hear-speak"
  160. #define API_APP_PAGE_Teacher @"/api/app/page/teacher"
  161. #define API_APP_PAGE_WE_BOOK @"/api/app/page/day-we-book"
  162. #define API_APP_RANDOM_DAY_Skill @"/api/app/page/random-day-skill"
  163. #define API_APP_DAY_Skill @"/api/app/page/day-skill"
  164. #pragma mark - 书城
  165. #define API_APP_BOOK_City @"/api/app/page/book-city"
  166. #define API_APP_PAGE_Lable @"/api/app/page/lable"
  167. #define API_APP_User_Like @"/api/app/page/user-like"///猜你喜欢
  168. #define API_APP_PAGE_Category @"/api/app/page/category"
  169. #define API_APP_Content_Navi_List @"/api/app/page/content-navigation-list"
  170. #define API_APP_PAGE_Ranking @"/api/app/page/ranking"
  171. #define API_APP_PAGE_Star @"/api/app/page/star"
  172. #define API_APP_PAGE_Star_page @"/api/app/page/star-page"
  173. #define API_APP_PAGE_Navigation_Search @"/api/app/page/navigation-search"///内容导航筛选
  174. #define API_APP_PAGE_Channel @"/api/app/page/channel"
  175. #define API_APP_PAGE_Channel_Category @"/api/app/page/channel-category/"
  176. #define API_APP_PAGE_Channel_Category_Media @"/api/app/page/channel-category-media"
  177. #define API_APP_PAGE_Sku @"/api/app/page/sku"
  178. #define API_APP_Media @"/api/app/media/"
  179. #define API_APP_Media_Book @"/api/app/media/book/"
  180. #define API_APP_Media_Book_Content @"/api/app/media/book/content"
  181. #define API_APP_Media_Audio @"/api/app/media/audio/"
  182. #pragma mark - 小组
  183. #define API_APP_GROUP_Group_Category @"/api/app/group/group-category/"
  184. #define API_APP_GROUP_Category_list @"/api/app/group/category-list/"
  185. #define API_APP_GROUP_Search @"/api/app/group/search/"
  186. #pragma mark - 设置消息
  187. #define Seting_PrivateLetter_Post @"/api/app/user/update-user-private-letter"
  188. #define Seting_Notice_Post @"/api/app/user/update-user-notice"
  189. #define Seting_Reply_Post @"/api/app/user/update-user-reply"
  190. #define Seting_Mute_Post @"/api/app/user/update-user-mute"
  191. #define Seting_Shake_Post @"/api/app/user/update-user-shake"
  192. #define Seting_FeedBack_Post @"/api/app/Feedback/add"
  193. #pragma mark - 评论 点赞通用接口 状态 10 会议纪要 0 文章 1 话题 2 通知 3 笔记
  194. ///评论列表
  195. #define API_APP_Comment_List @"/api/app/comment/list"
  196. ///点赞列表
  197. #define API_APP_Analyze_List @"/api/app/analyze/list"
  198. ///点赞 AnalyzeType (1 文章点赞,2评论点赞,3收藏,4转发) TypeValue 10 会议纪要 100 文章 2 话题 5 通知 4 笔记 6站内信
  199. #define API_APP_Analyze_Set @"/api/app/analyze/set"
  200. ///添加评论
  201. #define API_APP_Comment_Add @"/api/app/comment/add"
  202. #define API_APP_Comment_Delete @"/api/app/comment/delete"
  203. #define API_APP_Comment_Update @"/api/app/comment/update"
  204. ///阅读列表
  205. #define API_APP_Visit_Page @"/api/app/visit/page"
  206. #pragma mark - 信源
  207. /// 跳转到聊天页面
  208. #define PUSHEMCHATVIEWCOTROLLER @"PUSHEMCHATVIEWCOTROLLER"
  209. /// 跳转到小组页面
  210. #define PUSHTDGROUPCOTROLLER @"PUSHTDGROUPCOTROLLER"
  211. ///侧滑跳转
  212. #define DRAWERPUSHVC @"DRAWERPUSHVC"
  213. #define VCINDEX @"VCINDEX"
  214. #define API_APP_Often_Contact_Search @"/api/app/often-contact/search/"
  215. #define AddressBookGroup_Search_Post @"/api/app/user/search"
  216. /// 查找好友
  217. #define API_APP_User_Find_friends @"/api/app/user/find-friends/"
  218. #define API_APP_User_Group_Chat_Search @"/api/app/user/group-chat/"
  219. #define API_APP_User_Chat_List @"/api/app/group-chat/list"
  220. #define API_APP_User_Chat_List_Contacts @"/api/app/group-chat/list-contacts"
  221. /// 添加好友
  222. #define API_APP_Admin_Verify_Add_Friend @"/api/app/admin-verify/add-friend"
  223. #define API_APP_User_User_Uread_Count @"/api/app/user/user-uread-count"
  224. /// 删除 自建分组
  225. #define AddressBookGroup_Get_Delete @"/api/app/address-book-group/"
  226. /// 修改 自建分组名称
  227. #define AddressBookGroup_Update_Post @"/api/app/address-book-group/update"
  228. /// 获取 通讯录列表
  229. #define AddressBookGroup_Get_Post @"/api/app/address-book-group/list"
  230. /// 添加 自建分组
  231. #define AddressBookGroup_Add_Post @"/api/app/address-book-group/add"
  232. /// 获取用户通讯录组
  233. #define AddressBookGroup_ListGroup_Post @"/api/app/address-book-group/list-group"
  234. /// 默认分组获取详情
  235. #define AddressBookGroup_DepartemntDetail_Post @"/api/app/department/user-list"
  236. /// 删除自建分组成员 单独
  237. #define AddressBookGroupUser_Delete_Delete @"/api/app/address-book-group-user/"
  238. /// 获取 自建分组成员列表
  239. #define AddressBookGroupUser_Get_Post @"/api/app/address-book-group-user/list"
  240. /// 添加 自建分组成员 单独
  241. #define AddressBookGroupUser_Add_Post @"/api/app/address-book-group-user/add" // addressBookGroupId
  242. /// 添加 自建分组成员 移动
  243. #define AddressBookGroupUser_Move_Post @"/api/app/address-book-group-user/move"
  244. /// 添加 自建分组成员 排序
  245. #define AddressBookGroupUser_Sort @"/api/app/address-book-group/sort"
  246. ///最近聊天
  247. #define API_APP_Often_Contact_Alllist @"/api/app/often-contact/all-list"
  248. /// 新获取用户通讯录组
  249. #define API_APP_User_Link @"/api/app/user/user-link"
  250. /// 添加 自建分组成员 群加
  251. #define AddressBookGroupUser_GroupAdd_Post @"/api/app/address-book-group/add-address-book-user"
  252. #define AddressBookUser_Detail_Get @"/api/app/user/detail/"
  253. /// 获取聊天工作组列表
  254. #define Often_Contact_List @"/api/app/often-contact/list/"
  255. /// 创建工作组
  256. #define AddIndividual_Group_Post @"/api/app/individual-group/add"
  257. /// 删除工作组
  258. #define DELETEIndividual_Group_Post @"/api/app/individual-group/delete"
  259. /// 重命名工作组
  260. #define PutIndividual_Group_Put @"/api/app/individual-group/edit"
  261. /// 置顶工作组
  262. #define PutIndividual_Group_isTop_Put @"/api/app/individual-group/is-top"
  263. /// 移动聊天
  264. #define Often_Contact_Move_Post @"/api/app/often-contact/move"
  265. /// 置顶聊天
  266. #define Often_Contact_isTop_Post @"/api/app/often-contact/is-top"
  267. /// 删除聊天
  268. #define Often_Contact_Delete_Post @"/api/app/often-contact/delete"
  269. ///添加会话
  270. #define Often_Contact_Add_Post @"/api/app/often-contact/add"
  271. /// 添加聊天信息到工作组
  272. #define AddOften_Contact_Post @"/api/app/often-contact/add"
  273. #define AddChaoSongRen_Post @"/api/app/user/find"
  274. #define API_APP_User_Middle @"/api/app/user/user-middle"
  275. /// 群信息
  276. #define Group_chat_info @"/api/app/group-chat-user/group-chat-user-search"
  277. /// 群禁言
  278. #define Group_chat_in_mute @"/api/app/group-chat/in-mute"
  279. /// 群解除禁言
  280. #define Group_chat_remove_mute @"/api/app/group-chat/remove-mute"
  281. /// 群是否管理员同意
  282. #define Group_chat_is_admin @"/api/app/group-chat/up-is-admin"
  283. /// 修改群信息
  284. #define Group_chat_updata @"/api/app/group-chat/update"
  285. /// 添加群信成员
  286. #define Group_chat_add_users @"/api/app/group-chat/add-users"
  287. /// 删除群聊成员
  288. #define Group_chat_remove_users @"/api/app/group-chat/remove-users"
  289. /// 聊天消息查询
  290. #define Chat_record_history @"/api/app/chat-record/history"
  291. /// 是否显示二维码
  292. #define API_App_Group_Chat @"/api/app/group-chat/"
  293. /// 是否免打扰
  294. #define Group_Chat_User_is_disturb @"/api/app/group-chat-user/up-is-disturb"
  295. /// 是否聊天置顶
  296. #define Group_Chat_User_is_top @"/api/app/group-chat-user/up-is-top"
  297. /// 回复列表
  298. #define API_APP_Reply_List @"/api/app/reply/list"
  299. #define API_APP_Reply_Praise @"/api/app/reply/praise"
  300. #pragma mark - Article
  301. ///列表/通知
  302. #define Article_Notice_list_Post @"/api/app/article/user-article-list"
  303. /// 文章/通知
  304. #define Article_Notice_Get @"/api/app/article/detail/"
  305. /// 文章 点赞 收藏 转发
  306. #define Article_Analyze_Post @"/api/app/article/analyze"
  307. /// 文章点赞分页数据
  308. #define Article_PraisePage_Post @"/api/app/article/praise-page"
  309. /// 文章 不感兴趣
  310. #define Article_Hander_Post @"api/app/blacklist-article/add"
  311. ///
  312. #define Article_Pindao_Post @"/api/app/article-group/list"
  313. #define Article_Pindao_User_Post @"/api/app/article-group-user/list"
  314. #define Article_Pindao_User_add @"/api/app/article-group-user/add"
  315. #define Article_Pindao_User_Delete @"/api/app/article-group-user/"
  316. #pragma mark - 站内信
  317. ///已读未读
  318. #define API_APP_Missive_Read @"/api/app/missive/read"
  319. ///撤回
  320. #define API_APP_Missive_Recall @"/api/app/missive/recall/"
  321. #pragma mark - 通知
  322. ///已读未读
  323. #define API_APP_Notice_Read @"/api/app/notice/read"
  324. #pragma mark -  小组
  325. ///查看小组列表
  326. #define APP_Group_Find @"/api/app/group/find"
  327. #define APP_Group_Lately_Group @"/api/app/group/lately-group"
  328. ///文件夹类型 1 通知 2话题 3 收藏 4笔记 5 普通站内信 6匿名站内信 7小组 10聊天
  329. #define APP_Middle_Add_Folder @"/api/app/middle/add-folder"
  330. ///新建小组
  331. #define APP_Group_Insert @"/api/app/group/insert"
  332. ///小组详情
  333. #define APP_Group_Detail @"/api/app/group/detail"
  334. ///修改小组信息
  335. #define APP_Group_Update @"/api/app/group/update"
  336. ///退出小组
  337. #define APP_Group_DELETE @"/api/app/group/"
  338. ///添加小组成员
  339. #define APP_Group_Insert_User @"/api/app/group/insert-user"
  340. ///删除小组成员
  341. #define APP_Group_DELETE_User @"/api/app/group/delete-user"
  342. ///设置小组成员权限
  343. #define APP_Group_Update_User @"/api/app/group/update-user"
  344. ///转让小组
  345. #define API_APP_Group_Transfer @"/api/app/group/transfer"
  346. ///消息免打扰
  347. #define APP_Group_Set_Words @"/api/app/group/set-words/"
  348. ///只允许管理员发话题(禁言)
  349. #define APP_Group_Set_Admin @"/api/app/group/set-admin/"
  350. ///免打扰
  351. #define APP_Group_Set_Disturb @"/api/app/group/set-disturb/"
  352. ///添加话题
  353. #define APP_Topic_Add @"/api/app/topic/add"
  354. ///小组话题列表
  355. #define APP_Group_Search @"/api/app/group/search"
  356. ///小组草稿箱清空
  357. #define APP_Topic_Clear_Draft @"/api/app/topic/clear-draft/"
  358. #pragma mark - 话题
  359. ///话题分组列表
  360. #define APP_Topic_Group @"/api/app/topic/group"
  361. ///小组列表
  362. #define API_APP_Group_List @"/api/app/group/list"
  363. ///话题分组列表
  364. #define APP_Topic_List_Group @"/api/app/topic/list-group"
  365. ///添加话题分组
  366. #define APP_Topic_Add_Group @"/api/app/topic/add-group"
  367. ///根据分组ID查询用户
  368. #define APP_Topic_User_Get @"/api/app/topic/"
  369. ///添加成员
  370. #define APP_Topic_Add_Group_User @"/api/app/topic/add-group-user"
  371. ///根据话题分组Id删除数据
  372. #define APP_Topic_Topic_Delete_Group @"/api/app/topic/delete_group"
  373. ///点赞
  374. #define APP_Topic_Topic_Topic_Laud @"/api/app/topic/topic-laud"
  375. ///话题列表
  376. #define APP_Topic_List_Page @"/api/app/topic/list-page"
  377. #define API_APP_Topic_Page @"/api/app/topic/page"
  378. ///根据ID删除话题分组成员
  379. #define APP_Topic_Group_User @"/api/app/topic/group-user"
  380. ///根据ID移动到话题分组
  381. #define APP_Topic_Move @"/api/app/topic/move"
  382. ///获取用户共享文件夹
  383. #define APP_Topic_Common_Folders @"/api/app/topic/common-folders/"
  384. ///修改分组名称
  385. #define APP_Topic_Update_Group @"/api/app/topic/update-group"
  386. ///获取话题详情
  387. #define APP_Topic_App_Detail @"/api/app/topic/app-detail"
  388. ///评论分页显示数据
  389. #define APP_Topic_Topic_comment_List @"/api/app/topic/topic-comment-list"
  390. ///点赞分页显示数据
  391. #define APP_Topic_Praise_Page @"/api/app/topic/praise-page"
  392. ///评论点赞
  393. #define APP_Topic_Topic_Laud @"/api/app/topic/topic-laud"
  394. ///添加评论
  395. #define APP_Topic_Add_Comment @"/api/app/topic/add-comment"
  396. ///删除话题
  397. #define API_APP_Topic @"/api/app/topic/"
  398. ///修改话题
  399. #define API_APP_Topic_Update @"/api/app/topic/update"
  400. ///分组排序
  401. #define API_APP_Topic_Sort @"/api/app/topic/sort"
  402. #define API_APP_Middle_Search_Note_Folder @"/api/app/middle/search-note-folder"
  403. #pragma mark - 待办事项
  404. ///修改标签
  405. #define APP_Wait_Handle_Add_Updtae_Label @"/api/app/wait-handle/add-update-label"
  406. ///待办事项祥情
  407. #define APP_Wait_Handle_Detail @"/api/app/wait-handle/"
  408. ///标签列表
  409. #define APP_Wait_Handle_Page_Label @"/api/app/wait-handle/page-label"
  410. ///添加修改待办事项
  411. #define APP_Wait_Handle_Add_Update @"/api/app/wait-handle/add-update"
  412. ///待办事项列表
  413. #define APP_Wait_Handle_List @"/api/app/wait-handle/list"
  414. ///设置待办事项
  415. #define APP_Wait_Handle_Set @"/api/app/wait-handle/set/"
  416. ///删除待办事项
  417. #define APP_Wait_Handle_Delete @"/api/app/wait-handle/delete"
  418. ///删除标签
  419. #define APP_Wait_Handle_Delete_Label @"/api/app/wait-handle/delete-label"
  420. #pragma mark - 添加评论
  421. #define Artticle_AddConmment_Post @"/api/app/comment/add"
  422. #define Artticle_AddZan_Post @"/api/app/comment/laud"
  423. #define Artticle_ConmmentList_Post @"/api/app/comment/list"
  424. #define Article_Detail_Get @"/api/app/article/detail/"
  425. #pragma mark - ArticleGroup
  426. ///列表
  427. #define ArticleGroup_List_GET @"/api/app/article-group/list"
  428. #pragma mark - 搜索
  429. #define Search_Thesaurus_Post @"/api/app/thesaurus/get-thesaurus"
  430. #pragma mark - 工作
  431. ///
  432. #define HomeSlideImages_GET @"/api/app/slide/list"
  433. #define WorkFlowHomeData_Post @"/api/app/process/"
  434. #define WorkFlowAddApproval_Post @"/api/app/flow"
  435. #define WorkFlowNumberCount_Get @"/api/app/flow/count"
  436. #define WorkFlowHomeData2_Post @"/api/app/app-report/list"
  437. #define WorkGetFileFormIDString_Post @"/api/app/file/find"
  438. /// 待办事项
  439. #define WorkFlowWaitFlowHande_Get @"/api/app/flow/todo"
  440. #define WorkFlowFilter_Get @"/api/app/flow/filter"
  441. /// 审批 同意 驳回
  442. #define WorkFlowApproval_Post @"/api/app/flow/action/check"
  443. /// 催办
  444. #define WorkFlowApprovalComeon_Post @"/api/app/flow/action/remind"
  445. /// 上会
  446. #define WorkFlowApprovalMetting_Post @"/api/app/flow/action/meeting"
  447. #define API_APP_Flow_Action_Recall @"/api/app/flow/action/recall/"
  448. /// 撤销上会
  449. #define WorkFlowApprovalCancelMetting_Post @"/api/app/flow/action/cancelMeeting"
  450. #define WorkFlowApprovalDownLoad_Post @"/api/app/flow/action/download"
  451. /// 获取车辆类型列表
  452. #define WorkFlowApp_Car_Type_Get @"/api/app/car/type"
  453. /// 车辆申请提交
  454. #define WorkFlowApp_Car_Actions_Order @"/api/app/car/actions/order"
  455. /// 重新提交
  456. #define WorkFlowApproval_ReAddPost @"/api/app/flow/action/reAdd"
  457. /// 转审
  458. #define WorkFlowApproval_OtherPost @"/api/app/flow/action/transferCheck"
  459. /// 出版数据 财务数据 人事数据
  460. #define WorkFlowlistData_Post @"/api/app/finance/chart"
  461. /// 出版数据 库存
  462. #define WorkFlowlistData_Store_Post @"/api/app/storehouse/chart"
  463. #define WorkFlowlistData_Publish_Post @"/api/app/sell/chart"
  464. #define WorkFlowlistData_Version_Post @"/api/app/print/chart"
  465. #define WorkFlowlistData_HR_Post @"/api/app/human-affairs/chart"
  466. /// 会议相关接口
  467. #define MeetingList @"/api/app/meeting/rooms"
  468. /// 预定会议
  469. #define ActionMeeting(id) [NSString stringWithFormat:@"/api/app/meeting/rooms/%@/actions/order",id]
  470. /// 会议记录
  471. #define MeetingSummary @"/api/app/meeting/summary"
  472. /// 会议纪要列表
  473. #define MeetingSummaryList @"/api/app/meeting/summary/list"
  474. /// 修改会议纪要
  475. #define UpdateMeeting(id) [NSString stringWithFormat:@"/api/app/meeting/summary/%@",id]
  476. /// 获取我的会议列表
  477. #define MeetingCurrentList @"/api/app/meeting/current"
  478. /// 获取会议详情
  479. #define MeetingDetail @"/api/app/meeting/"
  480. /// 获取我的历史会议列表
  481. #define MeetingHistorytList @"/api/app/meeting/history"
  482. /// 取消会议
  483. #define CancelMeeting(id) [NSString stringWithFormat:@"/api/app/meeting/%@/actions/cancel",id]
  484. /// 获取参会人员
  485. #define MeetingPersonnelList @"/api/app/meeting/actions/users"
  486. //#define ArticleGroup _ @""
  487. #define IMGURL(urlString) [BaseUrl stringByAppendingString:urlString]
  488. //whether this string is empty
  489. #define ISEmptyString(str) ([str isKindOfClass:[NSNull class]] || !str || str.length == 0)
  490. #define ISEmpty(content) ([content isKindOfClass:[NSNull class]])
  491. #define ISEmptyNumber(num) ([num isKindOfClass:[NSNull class]] || !num)
  492. #define SELECTNOTE @"SELECTNOTE"
  493. #define SELECTCOLLECT @"SELECTCOLLECT"
  494. #define CHATMENUBAR @"CHATMENUBAR"
  495. #define SELECTEXTENTSUCCESS @"SELECTEXTENTSUCCESS"
  496. #define SELECTETOPICBOOK @"SELECTETOPICBOOK"
  497. #define HOMESCROLLVIEWTOTOP @"HOMESCROLLVIEWTOTOP"
  498. #define TOPICDATAUPDATA @"TOPICDATAUPDATA"
  499. #define GROUPADDMESSAGE @"GROUPADDMESSAGE"
  500. #define WORKREUPDATA @"WORKREUPDATA"
  501. #define DELETECONVERSATIONMSG @"DELETECONVERSATIONMSG"
  502. #define SELECTMEETFECORD @"SELECTMEETFECORD"
  503. #define COLLECTSUCCESS @"COLLECTSUCCESS"
  504. #define MESSAGERETURNSUCCESS @"MESSAGERETURNSUCCESS"
  505. #define SHARERETURNSUCCESS @"SHARERETURNSUCCESS"
  506. #define MAILSELECT @"MAILSELECT"
  507. #define CHECKDRAFT @"CHECKDRAFT"
  508. #define DRAFT @"DRAFT"
  509. #define NOTEBOOKDRAFTINFO @"NOTEBOOKDRAFTINFO"
  510. #define TOPICBOOKDRAFTINFO @"TOPICBOOKDRAFTINFO"
  511. #define GROUPTOPICDRAFTINFO @"GROUPTOPICDRAFTINFO"
  512. #define NOTICERAFTINFO @"NOTICERAFTINFO"
  513. #define MAILRAFTINFO @"MAILRAFTINFO"
  514. #define GROUPINFOUPDATE @"GROUPINFOUPDATE"
  515. #define DRAFTUPDATESUCCESS @"DRAFTUPDATESUCCESS"
  516. #define SETPLAYCOLSETIME @"SETPLAYCOLSETIME"
  517. #define kGXScreenHeigh ([UIScreen mainScreen].bounds.size.height)
  518. #define kGXScreenWidth ([UIScreen mainScreen].bounds.size.width)
  519. #define kGXScreenSize ([UIScreen mainScreen].bounds.size)
  520. #define kGXScreenScale ([UIScreen mainScreen].scale)