AppConfig.h 26 KB

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