AppConfig.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  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 REMOVESHOW [ZDTostView removeLoadingTost];
  34. /* 其他 */
  35. /// 其他
  36. #define HTTP_BaseURL @""//立宇台式
  37. #define HTTP_BaseURLH5 @""
  38. #define USERDEFAULTSSET(a,b) [[NSUserDefaults standardUserDefaults] setObject:a forKey:b];[[NSUserDefaults standardUserDefaults] synchronize]
  39. #define USERDEFAULTSGET(a) [[NSUserDefaults standardUserDefaults] objectForKey:a]
  40. #define WS(weakSelf) __weak __typeof (&*self)weakSelf = self
  41. #define IMG(name) [UIImage imageNamed:name]
  42. #define WeakSelf(type) __weak __typeof(type) weak##type = type;//弱引用
  43. #define StrongSelf(type) __strong __typeof(self) strongself = type;//强引用
  44. #define kIsHaveBang [ZYCTool isHaveBang]//判断是否是刘海屏系列
  45. //高适配
  46. #define Height_Layout(a) kIsHaveBang?a:a*HEIGHT_SCALE
  47. //宽适配
  48. #define Width_Layout(a) kIsHaveBang?a:a*WIDTH_SCALE
  49. /**
  50. 这个.h文件用来处理常用define宏定义
  51. 方法简写的方法名前面都已m开头
  52. 更多功能已经使用工具类utils.h中
  53. */
  54. /** 调试模式下输入NSLog,发布后不再输入 (打印信息包括 文件名 + 打印行数 + 打印方法 + 打印内容) */
  55. #if DEBUG
  56. #define NSLog(s , ... ) NSLog(@"[%@ in line:%d %s] \n %@", [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__,__FUNCTION__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
  57. #define debugMethod() NSLog(@"%s", __func__)
  58. #else
  59. #define NSLog(FORMAT, ...)
  60. #define debugMethod()
  61. #endif
  62. //单例宏
  63. // .h
  64. #define TDShareInstance_interface(class) +(instancetype) shared##class;
  65. // .m
  66. #define TDShareInstance_implementation(class) \
  67. static class *_instance; \
  68. \
  69. +(id) allocWithZone : (struct _NSZone *) zone { \
  70. static dispatch_once_t onceToken; \
  71. dispatch_once(&onceToken, ^{ \
  72. _instance = [super allocWithZone:zone]; \
  73. }); \
  74. \
  75. return _instance; \
  76. } \
  77. \
  78. +(instancetype) shared##class \
  79. { \
  80. if (_instance == nil) { \
  81. _instance = [[class alloc] init]; \
  82. } \
  83. \
  84. return _instance; \
  85. }
  86. #define kIsLoginToPush \
  87. \
  88. if(!kIsLogin) {\
  89. [ZYCTool alertControllerTwoButtonWithTitle:@"请先登录" message:@"" target:self notarizeButtonTitle:nil cancelButtonTitle:nil notarizeAction:^{\
  90. LoginViewController *loginController = [LoginViewController new];\
  91. [self.navigationController pushViewController:loginController animated:true];\
  92. } cancelAction:^{\
  93. }];\
  94. return;\
  95. }
  96. //weakSelf 宏定义
  97. #define WEAKSELF __weak __typeof(&*self)weakSelf = self;
  98. #define STRONGSELF __strong __typeof(weakSelf) strongSelf = weakSelf;
  99. /** ------------------ 快捷设置 ------------------ */
  100. #define mSetFrameY(view, newY) view.frame = CGRectMake(view.frame.origin.x, newY, view.frame.size.width, view.frame.size.height)
  101. #define mSetFrameX(view, newX) view.frame = CGRectMake(newX, view.frame.origin.y, view.frame.size.width, view.frame.size.height)
  102. #define mSetFrameH(view, newH) view.frame = CGRectMake(view.frame.origin.x, view.frame.origin.y, view.frame.size.width, newH)
  103. #define mSetFrameW(view, newW) view.frame = CGRectMake(view.frame.origin.x, view.frame.origin.y, newW, view.frame.size.height)
  104. /** ------------------ 颜色相关 ------------------ */
  105. #define kMainColor [UIColor colorWithRed:0/255.0 green:123/255.0 blue:221/255.0 alpha:1]
  106. #define kBackgroundColor [UIColor hexStringToColor:@"eeeeee"]
  107. #define k3 [UIColor hexStringToColor:@"333333"]
  108. #define k6 [UIColor hexStringToColor:@"666666"]
  109. #define k9 [UIColor hexStringToColor:@"999999"]
  110. #define LINEBGCOLOR [UIColor hexStringToColor:@"EAEAEA"]
  111. #endif /* AppConfig_h */
  112. //简写
  113. #define _Notif [NSNotificationCenter defaultCenter]
  114. #define _UD [NSUserDefaults standardUserDefaults]
  115. // 是否为空对象
  116. #define MHObjectIsNil(__object) ((nil == __object) || [__object isKindOfClass:[NSNull class]])
  117. //url
  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"
  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 Seting_PrivateLetter_Post @"/api/app/user/update-user-private-letter"
  156. #define Seting_Notice_Post @"/api/app/user/update-user-notice"
  157. #define Seting_Reply_Post @"/api/app/user/update-user-reply"
  158. #define Seting_Mute_Post @"/api/app/user/update-user-mute"
  159. #define Seting_Shake_Post @"/api/app/user/update-user-shake"
  160. #define Seting_FeedBack_Post @"/api/app/Feedback/add"
  161. #pragma mark - 评论 点赞通用接口 状态 10 会议纪要 0 文章 1 话题 2 通知 3 笔记
  162. ///评论列表
  163. #define API_APP_Comment_List @"/api/app/comment/list"
  164. ///点赞列表
  165. #define API_APP_Analyze_List @"/api/app/analyze/list"
  166. ///点赞 AnalyzeType (1 文章点赞,2评论点赞,3收藏,4转发) TypeValue 10 会议纪要 0 文章 1 话题 2 通知 3 笔记 4站内信
  167. #define API_APP_Analyze_Set @"/api/app/analyze/set"
  168. ///添加评论
  169. #define API_APP_Comment_Add @"/api/app/comment/add"
  170. #define API_APP_Comment_Delete @"/api/app/comment/delete"
  171. #define API_APP_Comment_Update @"/api/app/comment/update"
  172. ///阅读列表
  173. #define API_APP_Visit_Page @"/api/app/visit/page"
  174. #pragma mark - 信源
  175. /// 跳转到聊天页面
  176. #define PUSHEMCHATVIEWCOTROLLER @"PUSHEMCHATVIEWCOTROLLER"
  177. /// 跳转到小组页面
  178. #define PUSHTDGROUPCOTROLLER @"PUSHTDGROUPCOTROLLER"
  179. ///侧滑跳转
  180. #define DRAWERPUSHVC @"DRAWERPUSHVC"
  181. #define VCINDEX @"VCINDEX"
  182. #define AddressBookGroup_Search_Post @"/api/app/user/search"
  183. #define API_APP_User_User_Uread_Count @"/api/app/user/user-uread-count"
  184. /// 删除 自建分组
  185. #define AddressBookGroup_Get_Delete @"/api/app/address-book-group/"
  186. /// 修改 自建分组名称
  187. #define AddressBookGroup_Update_Post @"/api/app/address-book-group/update"
  188. /// 获取 通讯录列表
  189. #define AddressBookGroup_Get_Post @"/api/app/address-book-group/list"
  190. /// 添加 自建分组
  191. #define AddressBookGroup_Add_Post @"/api/app/address-book-group/add"
  192. /// 获取用户通讯录组
  193. #define AddressBookGroup_ListGroup_Post @"/api/app/address-book-group/list-group"
  194. /// 默认分组获取详情
  195. #define AddressBookGroup_DepartemntDetail_Post @"/api/app/department/user-list"
  196. /// 删除自建分组成员 单独
  197. #define AddressBookGroupUser_Delete_Delete @"/api/app/address-book-group-user/"
  198. /// 获取 自建分组成员列表
  199. #define AddressBookGroupUser_Get_Post @"/api/app/address-book-group-user/list"
  200. /// 添加 自建分组成员 单独
  201. #define AddressBookGroupUser_Add_Post @"/api/app/address-book-group-user/add" // addressBookGroupId
  202. /// 添加 自建分组成员 移动
  203. #define AddressBookGroupUser_Move_Post @"/api/app/address-book-group-user/move"
  204. /// 添加 自建分组成员 排序
  205. #define AddressBookGroupUser_Sort @"/api/app/address-book-group/sort"
  206. ///最近聊天
  207. #define API_APP_Often_Contact_Alllist @"/api/app/often-contact/all-list"
  208. /// 添加 自建分组成员 群加
  209. #define AddressBookGroupUser_GroupAdd_Post @"/api/app/address-book-group/add-address-book-user"
  210. #define AddressBookUser_Detail_Get @"/api/app/user/detail/"
  211. /// 获取聊天工作组列表
  212. #define Often_Contact_List @"/api/app/often-contact/list"
  213. /// 创建工作组
  214. #define AddIndividual_Group_Post @"/api/app/individual-group/add"
  215. /// 删除工作组
  216. #define DELETEIndividual_Group_Post @"/api/app/individual-group/delete"
  217. /// 重命名工作组
  218. #define PutIndividual_Group_Put @"/api/app/individual-group/edit"
  219. /// 置顶工作组
  220. #define PutIndividual_Group_isTop_Put @"/api/app/individual-group/is-top"
  221. /// 移动聊天
  222. #define Often_Contact_Move_Post @"/api/app/often-contact/move"
  223. /// 置顶聊天
  224. #define Often_Contact_isTop_Post @"/api/app/often-contact/is-top"
  225. /// 删除聊天
  226. #define Often_Contact_Delete_Post @"/api/app/often-contact/delete"
  227. ///添加会话
  228. #define Often_Contact_Add_Post @"/api/app/often-contact/add"
  229. /// 添加聊天信息到工作组
  230. #define AddOften_Contact_Post @"/api/app/often-contact/add"
  231. #define AddChaoSongRen_Post @"/api/app/user/find"
  232. /// 群信息
  233. #define Group_chat_info @"/api/app/group-chat-user/group-chat-user-search"
  234. /// 群禁言
  235. #define Group_chat_in_mute @"/api/app/group-chat/in-mute"
  236. /// 群解除禁言
  237. #define Group_chat_remove_mute @"/api/app/group-chat/remove-mute"
  238. /// 群是否管理员同意
  239. #define Group_chat_is_admin @"/api/app/group-chat/up-is-admin"
  240. /// 修改群信息
  241. #define Group_chat_updata @"/api/app/group-chat/update"
  242. /// 添加群信成员
  243. #define Group_chat_add_users @"/api/app/group-chat/add-users"
  244. /// 删除群聊成员
  245. #define Group_chat_remove_users @"/api/app/group-chat/remove-users"
  246. /// 聊天消息查询
  247. #define Chat_record_history @"/api/app/chat-record/history"
  248. /// 是否显示二维码
  249. #define API_App_Group_Chat @"/api/app/group-chat/"
  250. /// 是否免打扰
  251. #define Group_Chat_User_is_disturb @"/api/app/group-chat-user/up-is-disturb"
  252. /// 是否聊天置顶
  253. #define Group_Chat_User_is_top @"/api/app/group-chat-user/up-is-top"
  254. #pragma mark - Article
  255. ///列表/通知
  256. #define Article_Notice_list_Post @"/api/app/article/user-article-list"
  257. /// 文章/通知
  258. #define Article_Notice_Get @"/api/app/article/detail/"
  259. /// 文章 点赞 收藏 转发
  260. #define Article_Analyze_Post @"/api/app/article/analyze"
  261. /// 文章点赞分页数据
  262. #define Article_PraisePage_Post @"/api/app/article/praise-page"
  263. /// 文章 不感兴趣
  264. #define Article_Hander_Post @"api/app/blacklist-article/add"
  265. ///
  266. #define Article_Pindao_Post @"/api/app/article-group/list"
  267. #define Article_Pindao_User_Post @"/api/app/article-group-user/list"
  268. #define Article_Pindao_User_add @"/api/app/article-group-user/add"
  269. #define Article_Pindao_User_Delete @"/api/app/article-group-user/"
  270. #pragma mark - 站内信
  271. ///已读未读
  272. #define API_APP_Missive_Read @"/api/app/missive/read"
  273. ///撤回
  274. #define API_APP_Missive_Recall @"/api/app/missive/recall/"
  275. #pragma mark - 通知
  276. ///已读未读
  277. #define API_APP_Notice_Read @"/api/app/notice/read"
  278. #pragma mark -  小组
  279. ///查看小组列表
  280. #define APP_Group_Find @"/api/app/group/find"
  281. ///文件夹类型 1 通知 2话题 3 收藏 4笔记 5 普通站内信 6匿名站内信 7小组 10聊天
  282. #define APP_Middle_Add_Folder @"/api/app/middle/add-folder"
  283. ///新建小组
  284. #define APP_Group_Insert @"/api/app/group/insert"
  285. ///小组详情
  286. #define APP_Group_Detail @"/api/app/group/detail"
  287. ///修改小组信息
  288. #define APP_Group_Update @"/api/app/group/update"
  289. ///退出小组
  290. #define APP_Group_DELETE @"/api/app/group/"
  291. ///添加小组成员
  292. #define APP_Group_Insert_User @"/api/app/group/insert-user"
  293. ///删除小组成员
  294. #define APP_Group_DELETE_User @"/api/app/group/delete-user"
  295. ///设置小组成员权限
  296. #define APP_Group_Update_User @"/api/app/group/update-user"
  297. ///消息免打扰
  298. #define APP_Group_Set_Words @"/api/app/group/set-words/"
  299. ///只允许管理员发话题(禁言)
  300. #define APP_Group_Set_Admin @"/api/app/group/set-admin/"
  301. ///免打扰
  302. #define APP_Group_Set_Disturb @"/api/app/group/set-disturb/"
  303. ///添加话题
  304. #define APP_Topic_Add @"/api/app/topic/add"
  305. ///小组话题列表
  306. #define APP_Group_Search @"/api/app/group/search"
  307. #pragma mark - 话题
  308. ///话题分组列表
  309. #define APP_Topic_Group @"/api/app/topic/group"
  310. ///添加话题分组
  311. #define APP_Topic_Add_Group @"/api/app/topic/add-group"
  312. ///根据分组ID查询用户
  313. #define APP_Topic_User_Get @"/api/app/topic/"
  314. ///添加成员
  315. #define APP_Topic_Add_Group_User @"/api/app/topic/add-group-user"
  316. ///根据话题分组Id删除数据
  317. #define APP_Topic_Topic_Delete_Group @"/api/app/topic/delete_group"
  318. ///点赞
  319. #define APP_Topic_Topic_Topic_Laud @"/api/app/topic/topic-laud"
  320. ///话题列表
  321. #define APP_Topic_Topic_List_Page @"/api/app/topic/list-page"
  322. ///根据ID删除话题分组成员
  323. #define APP_Topic_Group_User @"/api/app/topic/group-user"
  324. ///根据ID移动到话题分组
  325. #define APP_Topic_Move @"/api/app/topic/move"
  326. ///获取用户共享文件夹
  327. #define APP_Topic_Common_Folders @"/api/app/topic/common-folders/"
  328. ///修改分组名称
  329. #define APP_Topic_Update_Group @"/api/app/topic/update-group"
  330. ///获取话题详情
  331. #define APP_Topic_App_Detail @"/api/app/topic/app-detail"
  332. ///评论分页显示数据
  333. #define APP_Topic_Topic_comment_List @"/api/app/topic/topic-comment-list"
  334. ///点赞分页显示数据
  335. #define APP_Topic_Praise_Page @"/api/app/topic/praise-page"
  336. ///评论点赞
  337. #define APP_Topic_Topic_Laud @"/api/app/topic/topic-laud"
  338. ///添加评论
  339. #define APP_Topic_Add_Comment @"/api/app/topic/add-comment"
  340. ///删除话题
  341. #define API_APP_Topic @"/api/app/topic/"
  342. ///修改话题
  343. #define API_APP_Topic_Update @"/api/app/topic/update"
  344. ///分组排序
  345. #define API_APP_Topic_Sort @"/api/app/topic/sort"
  346. #pragma mark - 待办事项
  347. ///修改标签
  348. #define APP_Wait_Handle_Add_Updtae_Label @"/api/app/wait-handle/add-update-label"
  349. ///待办事项祥情
  350. #define APP_Wait_Handle_Detail @"/api/app/wait-handle/"
  351. ///标签列表
  352. #define APP_Wait_Handle_Page_Label @"/api/app/wait-handle/page-label"
  353. ///添加修改待办事项
  354. #define APP_Wait_Handle_Add_Update @"/api/app/wait-handle/add-update"
  355. ///待办事项列表
  356. #define APP_Wait_Handle_List @"/api/app/wait-handle/list"
  357. ///设置待办事项
  358. #define APP_Wait_Handle_Set @"/api/app/wait-handle/set/"
  359. ///删除待办事项
  360. #define APP_Wait_Handle_Delete @"/api/app/wait-handle/delete"
  361. ///删除标签
  362. #define APP_Wait_Handle_Delete_Label @"/api/app/wait-handle/delete-label"
  363. #pragma mark - 添加评论
  364. #define Artticle_AddConmment_Post @"/api/app/comment/add"
  365. #define Artticle_AddZan_Post @"/api/app/comment/laud"
  366. #define Artticle_ConmmentList_Post @"/api/app/comment/list"
  367. #define Article_Detail_Get @"/api/app/article/detail/"
  368. #pragma mark - ArticleGroup
  369. ///列表
  370. #define ArticleGroup_List_GET @"/api/app/article-group/list"
  371. #pragma mark - 搜索
  372. #define Search_Thesaurus_Post @"/api/app/thesaurus/get-thesaurus"
  373. #pragma mark - 工作
  374. ///
  375. #define HomeSlideImages_GET @"/api/app/slide/list"
  376. #define WorkFlowHomeData_Post @"/api/app/process/"
  377. #define WorkFlowAddApproval_Post @"/api/app/flow"
  378. #define WorkFlowNumberCount_Get @"/api/app/flow/count"
  379. #define WorkFlowHomeData2_Post @"/api/app/app-report/list"
  380. #define WorkGetFileFormIDString_Post @"/api/app/file/find"
  381. /// 待办事项
  382. #define WorkFlowWaitFlowHande_Get @"/api/app/flow/todo"
  383. #define WorkFlowFilter_Get @"/api/app/flow/filter"
  384. /// 审批 同意 驳回
  385. #define WorkFlowApproval_Post @"/api/app/flow/action/check"
  386. /// 催办
  387. #define WorkFlowApprovalComeon_Post @"/api/app/flow/action/remind"
  388. /// 上会
  389. #define WorkFlowApprovalMetting_Post @"/api/app/flow/action/meeting"
  390. /// 撤销上会
  391. #define WorkFlowApprovalCancelMetting_Post @"/api/app/flow/action/cancelMeeting"
  392. #define WorkFlowApprovalDownLoad_Post @"/api/app/flow/action/download"
  393. /// 获取车辆类型列表
  394. #define WorkFlowApp_Car_Type_Get @"/api/app/car/type"
  395. /// 车辆申请提交
  396. #define WorkFlowApp_Car_Actions_Order @"/api/app/car/actions/order"
  397. /// 重新提交
  398. #define WorkFlowApproval_ReAddPost @"/api/app/flow/action/reAdd"
  399. /// 转审
  400. #define WorkFlowApproval_OtherPost @"/api/app/flow/action/transferCheck"
  401. /// 出版数据 财务数据 人事数据
  402. #define WorkFlowlistData_Post @"/api/app/finance/chart"
  403. /// 出版数据 库存
  404. #define WorkFlowlistData_Store_Post @"/api/app/storehouse/chart"
  405. #define WorkFlowlistData_Publish_Post @"/api/app/sell/chart"
  406. #define WorkFlowlistData_Version_Post @"/api/app/print/chart"
  407. #define WorkFlowlistData_HR_Post @"/api/app/human-affairs/chart"
  408. /// 会议相关接口
  409. #define MeetingList @"/api/app/meeting/rooms"
  410. /// 预定会议
  411. #define ActionMeeting(id) [NSString stringWithFormat:@"/api/app/meeting/rooms/%@/actions/order",id]
  412. /// 会议记录
  413. #define MeetingSummary @"/api/app/meeting/summary"
  414. /// 会议纪要列表
  415. #define MeetingSummaryList @"/api/app/meeting/summary/list"
  416. /// 修改会议纪要
  417. #define UpdateMeeting(id) [NSString stringWithFormat:@"/api/app/meeting/summary/%@",id]
  418. /// 获取我的会议列表
  419. #define MeetingCurrentList @"/api/app/meeting/current"
  420. /// 获取会议详情
  421. #define MeetingDetail @"/api/app/meeting/"
  422. /// 获取我的历史会议列表
  423. #define MeetingHistorytList @"/api/app/meeting/history"
  424. /// 取消会议
  425. #define CancelMeeting(id) [NSString stringWithFormat:@"/api/app/meeting/%@/actions/cancel",id]
  426. /// 获取参会人员
  427. #define MeetingPersonnelList @"/api/app/meeting/actions/users"
  428. //#define ArticleGroup _ @""
  429. #define IMGURL(urlString) [BaseUrl stringByAppendingString:urlString]
  430. //whether this string is empty
  431. #define ISEmptyString(str) ([str isKindOfClass:[NSNull class]] || !str || str.length == 0)
  432. #define ISEmpty(content) ([content isKindOfClass:[NSNull class]])
  433. #define ISEmptyNumber(num) ([num isKindOfClass:[NSNull class]] || !num)
  434. #define SELECTNOTE @"SELECTNOTE"
  435. #define SELECTCOLLECT @"SELECTCOLLECT"
  436. #define CHATMENUBAR @"CHATMENUBAR"
  437. #define SELECTEXTENTSUCCESS @"SELECTEXTENTSUCCESS"
  438. #define HOMESCROLLVIEWTOTOP @"HOMESCROLLVIEWTOTOP"
  439. #define TOPICDATAUPDATA @"TOPICDATAUPDATA"
  440. #define GROUPADDMESSAGE @"GROUPADDMESSAGE"
  441. #define WORKREUPDATA @"WORKREUPDATA"
  442. #define DELETECONVERSATIONMSG @"DELETECONVERSATIONMSG"
  443. #define SELECTMEETFECORD @"SELECTMEETFECORD"
  444. #define COLLECTSUCCESS @"COLLECTSUCCESS"
  445. #define MESSAGERETURNSUCCESS @"MESSAGERETURNSUCCESS"
  446. #define SHARERETURNSUCCESS @"SHARERETURNSUCCESS"
  447. #define kGXScreenHeigh ([UIScreen mainScreen].bounds.size.height)
  448. #define kGXScreenWidth ([UIScreen mainScreen].bounds.size.width)
  449. #define kGXScreenSize ([UIScreen mainScreen].bounds.size)
  450. #define kGXScreenScale ([UIScreen mainScreen].scale)