123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670 |
- //
- // AppConfig.h
- // DSH
- //
- // Created by wzx on 2018/9/24.
- // Copyright © 2018年 WZX. All rights reserved.
- //
- #ifndef AppConfig_h
- #define AppConfig_h
- /**
- 用户相关
- */
- #define kUserNickName USERDEFAULTSGET(@"nickname")
- #define kUserHeadImageURL USERDEFAULTSGET(@"headimgurl")
- #define kUserDefaultHeadImage [UIImage imageNamed:@"imagePlaceholder"]
- #define kUserId USERDEFAULTSGET(@"userId")
- #define kIsLogin [[NSUserDefaults standardUserDefaults] boolForKey:@"isLogin"]
- #define kIsVip [[NSUserDefaults standardUserDefaults] boolForKey:@"isVip"]
- #define kToken USERDEFAULTSGET(@"LOGINTOKEN")
- #define kSchedule USERDEFAULTSGET(@"kSchedule")
- #define kPlaceHolderImage [UIImage imageNamed:@"img_placeHolder"]
- #define kRegisterId USERDEFAULTSGET(@"registerId")
- #define kisApprove USERDEFAULTSGET(@"kisApprove")
- /**
- ZDTostView
- */
- #define SHOWMESSAGE(a) [ZDTostView showLoadingMessage:a inView:[UIApplication sharedApplication].keyWindow];
- #define SHOWERROR(a) [ZDTostView showErrorMessage:a inView:[UIApplication sharedApplication].keyWindow];
- #define SHOWERROR2(a) [ZDTostView showErrorMessage2:a inView:[UIApplication sharedApplication].keyWindow];
- #define SHOWSUCCESS(a) [ZDTostView showSucceedMessage:a inView:[UIApplication sharedApplication].keyWindow];
- #define SHOWWAIT(a) [ZDTostView showWaitMessage:a inView:[UIApplication sharedApplication].keyWindow];
- //#define SHOWLOADING [ZDTostView showLoadingMessage:@"加载中..." inView:[UIApplication sharedApplication].keyWindow];
- #define SHOWLOADING [ZDTostView showLoadingMessage:@"" inView:[UIApplication sharedApplication].keyWindow];
- #define REMOVESHOW [ZDTostView removeLoadingTost];
- /* 其他 */
- /// 其他
- #define HTTP_BaseURL @""//立宇台式
- #define HTTP_BaseURLH5 @""
- #define USERDEFAULTSSET(a,b) [[NSUserDefaults standardUserDefaults] setObject:a forKey:b];[[NSUserDefaults standardUserDefaults] synchronize]
- #define USERDEFAULTSGET(a) [[NSUserDefaults standardUserDefaults] objectForKey:a]
- #define WS(weakSelf) __weak __typeof (&*self)weakSelf = self
- #define IMG(name) [UIImage imageNamed:name]
- #define WeakSelf(type) __weak __typeof(type) weak##type = type;//弱引用
- #define StrongSelf(type) __strong __typeof(self) strongself = type;//强引用
- #define kIsHaveBang [ZYCTool isHaveBang]//判断是否是刘海屏系列
- //高适配
- #define Height_Layout(a) kIsHaveBang?a:a*HEIGHT_SCALE
- //宽适配
- #define Width_Layout(a) kIsHaveBang?a:a*WIDTH_SCALE
- /**
- 这个.h文件用来处理常用define宏定义
- 方法简写的方法名前面都已m开头
- 更多功能已经使用工具类utils.h中
- */
- /** 调试模式下输入NSLog,发布后不再输入 (打印信息包括 文件名 + 打印行数 + 打印方法 + 打印内容) */
- #if DEBUG
- #define NSLog(s , ... ) NSLog(@"[%@ in line:%d %s] \n %@", [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__,__FUNCTION__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
- #define debugMethod() NSLog(@"%s", __func__)
- #else
- #define NSLog(FORMAT, ...)
- #define debugMethod()
- #endif
- //单例宏
- // .h
- #define TDShareInstance_interface(class) +(instancetype) shared##class;
- // .m
- #define TDShareInstance_implementation(class) \
- static class *_instance; \
- \
- +(id) allocWithZone : (struct _NSZone *) zone { \
- static dispatch_once_t onceToken; \
- dispatch_once(&onceToken, ^{ \
- _instance = [super allocWithZone:zone]; \
- }); \
- \
- return _instance; \
- } \
- \
- +(instancetype) shared##class \
- { \
- if (_instance == nil) { \
- _instance = [[class alloc] init]; \
- } \
- \
- return _instance; \
- }
- #define kIsLoginToPush \
- \
- if(!kIsLogin) {\
- [ZYCTool alertControllerTwoButtonWithTitle:@"请先登录" message:@"" target:self notarizeButtonTitle:nil cancelButtonTitle:nil notarizeAction:^{\
- LoginViewController *loginController = [LoginViewController new];\
- [self.navigationController pushViewController:loginController animated:true];\
- } cancelAction:^{\
- }];\
- return;\
- }
- //weakSelf 宏定义
- #define WEAKSELF __weak __typeof(&*self)weakSelf = self;
- #define STRONGSELF __strong __typeof(weakSelf) strongSelf = weakSelf;
- /** ------------------ 快捷设置 ------------------ */
- #define mSetFrameY(view, newY) view.frame = CGRectMake(view.frame.origin.x, newY, view.frame.size.width, view.frame.size.height)
- #define mSetFrameX(view, newX) view.frame = CGRectMake(newX, view.frame.origin.y, view.frame.size.width, view.frame.size.height)
- #define mSetFrameH(view, newH) view.frame = CGRectMake(view.frame.origin.x, view.frame.origin.y, view.frame.size.width, newH)
- #define mSetFrameW(view, newW) view.frame = CGRectMake(view.frame.origin.x, view.frame.origin.y, newW, view.frame.size.height)
- /** ------------------ 颜色相关 ------------------ */
- #define kMainColor [UIColor colorWithRed:0/255.0 green:123/255.0 blue:221/255.0 alpha:1]
- #define kBackgroundColor [UIColor hexStringToColor:@"eeeeee"]
- #define k3 [UIColor hexStringToColor:@"333333"]
- #define k6 [UIColor hexStringToColor:@"666666"]
- #define k9 [UIColor hexStringToColor:@"999999"]
- #define LINEBGCOLOR [UIColor hexStringToColor:@"EAEAEA"]
- #endif /* AppConfig_h */
- //简写
- #define _Notif [NSNotificationCenter defaultCenter]
- #define _UD [NSUserDefaults standardUserDefaults]
- // 是否为空对象
- #define MHObjectIsNil(__object) ((nil == __object) || [__object isKindOfClass:[NSNull class]])
- //#define BaseUrl @"http://192.168.0.133:84"///广西
- //#define HtmlUrl @"http://192.168.0.113:8081"
- //#define HtmlUrl @"http://192.168.0.114:8081"
- #define BaseUrl @"https://apk.tederen.com/service"
- #define HtmlUrl @"https://apk.tederen.com"
- #define MyChannelUrl @"/api/v1/channels/1"
- #define ContentUrl @"/api/v1/contents/1"
- #define MainSearchUrl @"/api/v1/contents/1325"
- #define ShareUrl @"https://apk.tederen.com/"
- #define ShareHost(x) [NSString stringWithFormat:@"%@%@",ShareUrl,x]
- #define Host(x) [NSString stringWithFormat:@"%@%@",BaseUrl,x]
- #define HtmlHost(x) [NSString stringWithFormat:@"%@%@",HtmlUrl,x]
- #pragma mark - 用户系统
- #define LoginSendCodeGet @"/api/app/user/sendSmsCode"
- #define LoginPost @"/api/app/user/signin"
- #define UserDetailGet @"/api/app/user/detail/"
- #define UpdateUserInfoPUT @"/api/app/user/update/"
- ///用户修改手机号 发送验证码
- #define Modify_UserPhone_SendCode_Post @"/api/app/user/send-sms-code"
- ///用户修改手机号码
- #define Modify_UserPhone_Post @"/api/app/user/update-user-phone"
- ///用户修改邮箱
- #define Modify_UserEMail_Post @"/api/app/user/update-user-email"
- ///用户修改邮箱 发送验证码
- #define Modify_UserEMail_SendCode_Post @"/api/app/user/send-email-verify-code"
- ///查询微信是否绑定手机
- #define API_App_User_Opend_Id @"/api/app/user/find-opend-Id/"
- #define API_App_Set_Opend_Id @"/api/app/user/set-opend-Id/"
- ///IM用户扫一扫
- #define SaoYiSao_Post @"/api/app/user/guid"
- ///IM群扫一扫
- #define SaoYiSao2_Post @"/api/app/group-chat-user/"
- ///小组扫一扫
- #define SaoYiSao3_Post @"/api/app/group/"
- ///扫一扫登录
- #define API_APP_User_Qrcode_Send @"/api/app/user/qrcode-send/"
- ///单个文件上传
- #define Modify_UserImage_Post @"/api/app/file/upload"
- ///多个文件上传
- #define Modify_UserImages_Post @"/api/app/file/uploads"
- #pragma mark - 首页
- #define API_APP_PAGE_CATHEDRA @"/api/app/page/cathedra"
- #define API_APP_PAGE_CATHEDRA_Page @"/api/app/page/cathedra-page"
- #define API_APP_PAGE_GooDText @"/api/app/page/day-good-text"
- #define API_APP_Chat_Hear_Speak @"/api/app/page/chat-hear-speak"
- #define API_APP_PAGE_Teacher @"/api/app/page/teacher"
- #define API_APP_PAGE_WE_BOOK @"/api/app/page/day-we-book"
- #define API_APP_RANDOM_DAY_Skill @"/api/app/page/random-day-skill"
- #define API_APP_DAY_Skill @"/api/app/page/day-skill"
- #define API_APP_PAGE_Press @"/api/app/page/press"
- #define API_APP_Press @"/api/app/press/"
- #pragma mark - 书城
- #define API_APP_BOOK_City @"/api/app/page/book-city"
- #define API_APP_PAGE_Lable @"/api/app/page/lable"
- #define API_APP_User_Like @"/api/app/page/user-like"///猜你喜欢
- #define API_APP_PAGE_Category @"/api/app/page/category"
- #define API_APP_Content_Navi_List @"/api/app/page/content-navigation-list"
- #define API_APP_PAGE_Ranking @"/api/app/page/ranking"
- #define API_APP_PAGE_Star @"/api/app/page/star"
- #define API_APP_PAGE_Attach_List @"/api/app/page/attach-list"
- #define API_APP_PAGE_Attach @"/api/app/page/attach/"
- #define API_APP_Media_Attach @"/api/app/media/attach"
- #define API_APP_PAGE_Navigation_Search @"/api/app/page/navigation-search"///内容导航筛选
- #define API_APP_PAGE_Channel @"/api/app/page/channel"
- #define API_APP_PAGE_Channel_Category @"/api/app/page/channel-category/"
- #define API_APP_PAGE_Channel_Category_Media @"/api/app/page/channel-category-media"
- #define API_APP_PAGE_Sku @"/api/app/page/sku"
- #define API_APP_Media @"/api/app/media/"
- #define API_APP_Media_Book @"/api/app/media/book/"
- #define API_APP_Media_Book_Content @"/api/app/media/book/content"
- #define API_APP_Page_Banner_Search @"/api/app/page/banner-search"
- #define API_APP_Comment_Select @"/api/app/comment/select"
- #define API_APP_Media_Audio @"/api/app/media/audio/"
- #define API_APP_Media_Video @"/api/app/media/video/"
- #define API_APP_Media_Recommend @"/api/app/media/recommend"
- #define API_APP_Media_Read @"/api/app/media/read/"
- #define API_APP_Media_Teacher_Media @"/api/app/media/teacher-media"
- #pragma mark - 首页搜索
- #define API_APP_Page_Search @"/api/app/page/search"
- #define API_APP_Media_Search @"/api/app/media/search"
- #define API_APP_Page_System_Lable_User @"/api/app/page/system-lable-user"
- #define API_APP_Media_Lable_List @"/api/web/media/lable-list"
- #define API_APP_Page_RangKing_search @"/api/app/page/rangking-search"
- #define API_APP_Teacher @"/api/app/teacher/"
- #define API_APP_Media_Teacher @"/api/app/media/teacher"
- #pragma mark - 小组
- #define API_APP_GROUP_Group_Category @"/api/app/group/group-category/"
- #define API_APP_GROUP_Category_list @"/api/app/group/category-list/"
- #define API_APP_GROUP_Search @"/api/app/group/search/"
- #pragma mark - 设置消息
- #define Seting_PrivateLetter_Post @"/api/app/user/update-user-private-letter"
- #define Seting_Notice_Post @"/api/app/user/update-user-notice"
- #define Seting_Reply_Post @"/api/app/user/update-user-reply"
- #define Seting_Mute_Post @"/api/app/user/update-user-mute"
- #define Seting_Shake_Post @"/api/app/user/update-user-shake"
- #define Seting_FeedBack_Post @"/api/app/Feedback/add"
- #pragma mark - 评论 点赞通用接口 状态 10 会议纪要 0 文章 1 话题 2 通知 3 笔记
- ///评论列表
- #define API_APP_Comment_List @"/api/app/comment/list"
- ///点赞列表
- #define API_APP_Analyze_List @"/api/app/analyze/list"
- ///点赞 AnalyzeType (1 文章点赞,2评论点赞,3收藏,4转发) TypeValue 10 会议纪要 100 文章 2 话题 5 通知 4 笔记 6站内信
- #define API_APP_Analyze_Set @"/api/app/analyze/set"
- ///添加评论
- #define API_APP_Comment_Add @"/api/app/comment/add"
- #define API_APP_Comment_Delete @"/api/app/comment/delete"
- #define API_APP_Comment_Update @"/api/app/comment/update"
- ///阅读列表
- #define API_APP_Visit_Page @"/api/app/visit/page"
- #pragma mark - 信源
- /// 跳转到聊天页面
- #define PUSHEMCHATVIEWCOTROLLER @"PUSHEMCHATVIEWCOTROLLER"
- /// 跳转到小组页面
- #define PUSHTDGROUPCOTROLLER @"PUSHTDGROUPCOTROLLER"
- ///侧滑跳转
- #define DRAWERPUSHVC @"DRAWERPUSHVC"
- #define VCINDEX @"VCINDEX"
- #define API_APP_Often_Contact_Search @"/api/app/often-contact/search/"
- #define AddressBookGroup_Search_Post @"/api/app/user/search"
- /// 查找好友
- #define API_APP_User_Find_friends @"/api/app/user/find-friends/"
- #define API_APP_User_Group_Chat_Search @"/api/app/user/group-chat/"
- #define API_APP_User_Chat_List @"/api/app/group-chat/list"
- #define API_APP_User_Chat_List_Contacts @"/api/app/group-chat/list-contacts"
- /// 添加好友
- #define API_APP_Admin_Verify_Add_Friend @"/api/app/admin-verify/add-friend"
- #define API_APP_User_User_Uread_Count @"/api/app/user/user-uread-count"
- /// 删除 自建分组
- #define AddressBookGroup_Get_Delete @"/api/app/address-book-group/"
- /// 修改 自建分组名称
- #define AddressBookGroup_Update_Post @"/api/app/address-book-group/update"
- /// 获取 通讯录列表
- #define AddressBookGroup_Get_Post @"/api/app/address-book-group/list"
- /// 添加 自建分组
- #define AddressBookGroup_Add_Post @"/api/app/address-book-group/add"
- /// 获取用户通讯录组
- #define AddressBookGroup_ListGroup_Post @"/api/app/address-book-group/list-group"
- /// 默认分组获取详情
- #define AddressBookGroup_DepartemntDetail_Post @"/api/app/department/user-list"
- /// 删除自建分组成员 单独
- #define AddressBookGroupUser_Delete_Delete @"/api/app/address-book-group-user/"
- /// 获取 自建分组成员列表
- #define AddressBookGroupUser_Get_Post @"/api/app/address-book-group-user/list"
- /// 添加 自建分组成员 单独
- #define AddressBookGroupUser_Add_Post @"/api/app/address-book-group-user/add" // addressBookGroupId
- /// 添加 自建分组成员 移动
- #define AddressBookGroupUser_Move_Post @"/api/app/address-book-group-user/move"
- /// 添加 自建分组成员 排序
- #define AddressBookGroupUser_Sort @"/api/app/address-book-group/sort"
- ///最近聊天
- #define API_APP_Often_Contact_Alllist @"/api/app/often-contact/all-list"
- /// 新获取用户通讯录组
- #define API_APP_User_Link @"/api/app/user/user-link"
- /// 添加 自建分组成员 群加
- #define AddressBookGroupUser_GroupAdd_Post @"/api/app/address-book-group/add-address-book-user"
- #define AddressBookUser_Detail_Get @"/api/app/user/detail/"
- /// 获取聊天工作组列表
- #define Often_Contact_List @"/api/app/often-contact/list/"
- /// 创建工作组
- #define AddIndividual_Group_Post @"/api/app/individual-group/add"
- /// 删除工作组
- #define DELETEIndividual_Group_Post @"/api/app/individual-group/delete"
- /// 重命名工作组
- #define PutIndividual_Group_Put @"/api/app/individual-group/edit"
- /// 置顶工作组
- #define PutIndividual_Group_isTop_Put @"/api/app/individual-group/is-top"
- /// 移动聊天
- #define Often_Contact_Move_Post @"/api/app/often-contact/move"
- /// 置顶聊天
- #define Often_Contact_isTop_Post @"/api/app/often-contact/is-top"
- /// 删除聊天
- #define Often_Contact_Delete_Post @"/api/app/often-contact/delete"
- ///添加会话
- #define Often_Contact_Add_Post @"/api/app/often-contact/add"
- /// 添加聊天信息到工作组
- #define AddOften_Contact_Post @"/api/app/often-contact/add"
- #define AddChaoSongRen_Post @"/api/app/user/find"
- #define API_APP_User_Middle @"/api/app/user/user-middle"
- /// 群信息
- #define Group_chat_info @"/api/app/group-chat-user/group-chat-user-search"
- /// 群禁言
- #define Group_chat_in_mute @"/api/app/group-chat/in-mute"
- /// 群解除禁言
- #define Group_chat_remove_mute @"/api/app/group-chat/remove-mute"
- /// 群是否管理员同意
- #define Group_chat_is_admin @"/api/app/group-chat/up-is-admin"
- /// 修改群信息
- #define Group_chat_updata @"/api/app/group-chat/update"
- /// 添加群信成员
- #define Group_chat_add_users @"/api/app/group-chat/add-users"
- /// 删除群聊成员
- #define Group_chat_remove_users @"/api/app/group-chat/remove-users"
- /// 聊天消息查询
- #define Chat_record_history @"/api/app/chat-record/history"
- /// 是否显示二维码
- #define API_App_Group_Chat @"/api/app/group-chat/"
- /// 是否免打扰
- #define Group_Chat_User_is_disturb @"/api/app/group-chat-user/up-is-disturb"
- /// 是否聊天置顶
- #define Group_Chat_User_is_top @"/api/app/group-chat-user/up-is-top"
- /// 回复列表
- #define API_APP_Reply_List @"/api/app/reply/list"
- #define API_APP_Reply_Praise @"/api/app/reply/praise"
- #pragma mark - Article
- ///列表/通知
- #define Article_Notice_list_Post @"/api/app/article/user-article-list"
- /// 文章/通知
- #define Article_Notice_Get @"/api/app/article/detail/"
- /// 文章 点赞 收藏 转发
- #define Article_Analyze_Post @"/api/app/article/analyze"
- /// 文章点赞分页数据
- #define Article_PraisePage_Post @"/api/app/article/praise-page"
- /// 文章 不感兴趣
- #define Article_Hander_Post @"api/app/blacklist-article/add"
- ///
- #define Article_Pindao_Post @"/api/app/article-group/list"
- #define Article_Pindao_User_Post @"/api/app/article-group-user/list"
- #define Article_Pindao_User_add @"/api/app/article-group-user/add"
- #define Article_Pindao_User_Delete @"/api/app/article-group-user/"
- #pragma mark - 站内信
- ///已读未读
- #define API_APP_Missive_Read @"/api/app/missive/read"
- ///撤回
- #define API_APP_Missive_Recall @"/api/app/missive/recall/"
- #pragma mark - 通知
- ///已读未读
- #define API_APP_Notice_Read @"/api/app/notice/read"
- #pragma mark - 小组
- ///查看小组列表
- #define APP_Group_Find @"/api/app/group/find"
- #define APP_Group_Link_Group @"/api/app/group/link-group"
- #define APP_Group_Lately_Group @"/api/app/group/lately-group"
- ///文件夹类型 1 通知 2话题 3 收藏 4笔记 5 普通站内信 6匿名站内信 7小组 10聊天
- #define APP_Middle_Add_Folder @"/api/app/middle/add-folder"
- ///新建小组
- #define APP_Group_Insert @"/api/app/group/insert"
- ///小组详情
- #define APP_Group_Detail @"/api/app/group/detail"
- ///修改小组信息
- #define APP_Group_Update @"/api/app/group/update"
- #define APP_Group_Contacts @"/api/app/group/contacts/"
- #define APP_Group_Chat_Contacts @"/api/app/group-chat/contacts/"
- ///退出小组
- #define APP_Group_DELETE @"/api/app/group/"
- ///添加小组成员
- #define APP_Group_Insert_User @"/api/app/group/insert-user"
- ///删除小组成员
- #define APP_Group_DELETE_User @"/api/app/group/delete-user"
- ///设置小组成员权限
- #define APP_Group_Update_User @"/api/app/group/update-user"
- ///转让小组
- #define API_APP_Group_Transfer @"/api/app/group/transfer"
- ///消息免打扰
- #define APP_Group_Set_Words @"/api/app/group/set-words/"
- ///只允许管理员发话题(禁言)
- #define APP_Group_Set_Admin @"/api/app/group/set-admin/"
- ///免打扰
- #define APP_Group_Set_Disturb @"/api/app/group/set-disturb/"
- ///添加话题
- #define APP_Topic_Add @"/api/app/topic/add"
- ///小组话题列表
- #define APP_Group_Search @"/api/app/group/search"
- ///小组草稿箱清空
- #define APP_Topic_Clear_Draft @"/api/app/topic/clear-draft/"
- #pragma mark - 话题
- ///话题分组列表
- #define APP_Topic_Group @"/api/app/topic/group"
- ///小组列表
- #define API_APP_Group_List @"/api/app/group/list"
- ///话题分组列表
- #define APP_Topic_List_Group @"/api/app/topic/list-group"
- ///添加话题分组
- #define APP_Topic_Add_Group @"/api/app/topic/add-group"
- ///根据分组ID查询用户
- #define APP_Topic_User_Get @"/api/app/topic/"
- ///添加成员
- #define APP_Topic_Add_Group_User @"/api/app/topic/add-group-user"
- ///根据话题分组Id删除数据
- #define APP_Topic_Topic_Delete_Group @"/api/app/topic/delete_group"
- ///点赞
- #define APP_Topic_Topic_Topic_Laud @"/api/app/topic/topic-laud"
- ///话题列表
- #define APP_Topic_List_Page @"/api/app/topic/list-page"
- #define API_APP_Topic_Page @"/api/app/topic/page"
- ///根据ID删除话题分组成员
- #define APP_Topic_Group_User @"/api/app/topic/group-user"
- ///根据ID移动到话题分组
- #define APP_Topic_Move @"/api/app/topic/move"
- ///获取用户共享文件夹
- #define APP_Topic_Common_Folders @"/api/app/topic/common-folders/"
- ///修改分组名称
- #define APP_Topic_Update_Group @"/api/app/topic/update-group"
- ///获取话题详情
- #define APP_Topic_App_Detail @"/api/app/topic/app-detail"
- ///评论分页显示数据
- #define APP_Topic_Topic_comment_List @"/api/app/topic/topic-comment-list"
- ///点赞分页显示数据
- #define APP_Topic_Praise_Page @"/api/app/topic/praise-page"
- ///评论点赞
- #define APP_Topic_Topic_Laud @"/api/app/topic/topic-laud"
- ///添加评论
- #define APP_Topic_Add_Comment @"/api/app/topic/add-comment"
- ///删除话题
- #define API_APP_Topic @"/api/app/topic/"
- ///修改话题
- #define API_APP_Topic_Update @"/api/app/topic/update"
- ///分组排序
- #define API_APP_Topic_Sort @"/api/app/topic/sort"
- #define API_APP_Middle_Search_Note_Folder @"/api/app/middle/search-note-folder"
- #pragma mark - 待办事项
- ///修改标签
- #define APP_Wait_Handle_Add_Updtae_Label @"/api/app/wait-handle/add-update-label"
- ///待办事项祥情
- #define APP_Wait_Handle_Detail @"/api/app/wait-handle/"
- ///标签列表
- #define APP_Wait_Handle_Page_Label @"/api/app/wait-handle/page-label"
- ///添加修改待办事项
- #define APP_Wait_Handle_Add_Update @"/api/app/wait-handle/add-update"
- ///待办事项列表
- #define APP_Wait_Handle_List @"/api/app/wait-handle/list"
- ///设置待办事项
- #define APP_Wait_Handle_Set @"/api/app/wait-handle/set/"
- ///删除待办事项
- #define APP_Wait_Handle_Delete @"/api/app/wait-handle/delete"
- ///删除标签
- #define APP_Wait_Handle_Delete_Label @"/api/app/wait-handle/delete-label"
- #pragma mark - 添加评论
- #define Artticle_AddConmment_Post @"/api/app/comment/add"
- #define Artticle_AddZan_Post @"/api/app/comment/laud"
- #define Artticle_ConmmentList_Post @"/api/app/comment/list"
- #define Article_Detail_Get @"/api/app/article/detail/"
- #pragma mark - ArticleGroup
- ///列表
- #define ArticleGroup_List_GET @"/api/app/article-group/list"
- #pragma mark - 搜索
- #define Search_Thesaurus_Post @"/api/app/thesaurus/get-thesaurus"
- #pragma mark - 工作
- ///
- #define HomeSlideImages_GET @"/api/app/slide/list"
- #define WorkFlowHomeData_Post @"/api/app/process/"
- #define WorkFlowAddApproval_Post @"/api/app/flow"
- #define WorkFlowNumberCount_Get @"/api/app/flow/count"
- #define WorkFlowHomeData2_Post @"/api/app/app-report/list"
- #define WorkGetFileFormIDString_Post @"/api/app/file/find"
- /// 待办事项
- #define WorkFlowWaitFlowHande_Get @"/api/app/flow/todo"
- #define WorkFlowFilter_Get @"/api/app/flow/filter"
- /// 审批 同意 驳回
- #define WorkFlowApproval_Post @"/api/app/flow/action/check"
- /// 催办
- #define WorkFlowApprovalComeon_Post @"/api/app/flow/action/remind"
- /// 上会
- #define WorkFlowApprovalMetting_Post @"/api/app/flow/action/meeting"
- #define API_APP_Flow_Action_Recall @"/api/app/flow/action/recall/"
- /// 撤销上会
- #define WorkFlowApprovalCancelMetting_Post @"/api/app/flow/action/cancelMeeting"
- #define WorkFlowApprovalDownLoad_Post @"/api/app/flow/action/download"
- /// 获取车辆类型列表
- #define WorkFlowApp_Car_Type_Get @"/api/app/car/type"
- /// 车辆申请提交
- #define WorkFlowApp_Car_Actions_Order @"/api/app/car/actions/order"
- /// 重新提交
- #define WorkFlowApproval_ReAddPost @"/api/app/flow/action/reAdd"
- /// 转审
- #define WorkFlowApproval_OtherPost @"/api/app/flow/action/transferCheck"
- /// 出版数据 财务数据 人事数据
- #define WorkFlowlistData_Post @"/api/app/finance/chart"
- /// 出版数据 库存
- #define WorkFlowlistData_Store_Post @"/api/app/storehouse/chart"
- #define WorkFlowlistData_Publish_Post @"/api/app/sell/chart"
- #define WorkFlowlistData_Version_Post @"/api/app/print/chart"
- #define WorkFlowlistData_HR_Post @"/api/app/human-affairs/chart"
- /// 会议相关接口
- #define MeetingList @"/api/app/meeting/rooms"
- /// 预定会议
- #define ActionMeeting(id) [NSString stringWithFormat:@"/api/app/meeting/rooms/%@/actions/order",id]
- /// 会议记录
- #define MeetingSummary @"/api/app/meeting/summary"
- /// 会议纪要列表
- #define MeetingSummaryList @"/api/app/meeting/summary/list"
- /// 修改会议纪要
- #define UpdateMeeting(id) [NSString stringWithFormat:@"/api/app/meeting/summary/%@",id]
- /// 获取我的会议列表
- #define MeetingCurrentList @"/api/app/meeting/current"
- /// 获取会议详情
- #define MeetingDetail @"/api/app/meeting/"
- /// 获取我的历史会议列表
- #define MeetingHistorytList @"/api/app/meeting/history"
- /// 取消会议
- #define CancelMeeting(id) [NSString stringWithFormat:@"/api/app/meeting/%@/actions/cancel",id]
- /// 获取参会人员
- #define MeetingPersonnelList @"/api/app/meeting/actions/users"
- ///期刊
- #define API_APP_Media_Journals @"/api/app/media/journals/"
- #define API_APP_Media_Journals_Category @"/api/app/media/journals-category/"
- //#define ArticleGroup _ @""
- #define IMGURL(urlString) [BaseUrl stringByAppendingString:urlString]
- //whether this string is empty
- #define ISEmptyString(str) ([str isKindOfClass:[NSNull class]] || !str || str.length == 0)
- #define ISEmpty(content) ([content isKindOfClass:[NSNull class]])
- #define ISEmptyNumber(num) ([num isKindOfClass:[NSNull class]] || !num)
- #define NAVIGATION_BAR_HEIGHT 44.f
- #define STATUS_BAR_HEIGHT [UIApplication sharedApplication].statusBarFrame.size.height
- #define IsEnablePersonalCenterVCMainTableViewScroll @"IsEnablePersonalCenterVCMainTableViewScroll"
- #define CurrentSelectedChildViewControllerIndex @"CurrentSelectedChildViewControllerIndex"
- #define PersonalCenterVCBackingStatus @"PersonalCenterVCBackingStatus"
- #define SELECTNOTE @"SELECTNOTE"
- #define SELECTCOLLECT @"SELECTCOLLECT"
- #define CHATMENUBAR @"CHATMENUBAR"
- #define SELECTEXTENTSUCCESS @"SELECTEXTENTSUCCESS"
- #define SELECTETOPICBOOK @"SELECTETOPICBOOK"
- #define HOMESCROLLVIEWTOTOP @"HOMESCROLLVIEWTOTOP"
- #define TOPICDATAUPDATA @"TOPICDATAUPDATA"
- #define GROUPADDMESSAGE @"GROUPADDMESSAGE"
- #define WORKREUPDATA @"WORKREUPDATA"
- #define DELETECONVERSATIONMSG @"DELETECONVERSATIONMSG"
- #define SELECTMEETFECORD @"SELECTMEETFECORD"
- #define COLLECTSUCCESS @"COLLECTSUCCESS"
- #define MESSAGERETURNSUCCESS @"MESSAGERETURNSUCCESS"
- #define SHARERETURNSUCCESS @"SHARERETURNSUCCESS"
- #define MAILSELECT @"MAILSELECT"
- #define CHECKDRAFT @"CHECKDRAFT"
- #define DRAFT @"DRAFT"
- #define NOTEBOOKDRAFTINFO @"NOTEBOOKDRAFTINFO"
- #define TOPICBOOKDRAFTINFO @"TOPICBOOKDRAFTINFO"
- #define GROUPTOPICDRAFTINFO @"GROUPTOPICDRAFTINFO"
- #define NOTICERAFTINFO @"NOTICERAFTINFO"
- #define MAILRAFTINFO @"MAILRAFTINFO"
- #define GROUPINFOUPDATE @"GROUPINFOUPDATE"
- #define DRAFTUPDATESUCCESS @"DRAFTUPDATESUCCESS"
- #define SETPLAYCOLSETIME @"SETPLAYCOLSETIME"
- #define JPUSHSUCCESS @"JPUSHSUCCESS"
- #define UPDATAUSERICON @"UPDATAUSERICON"
- #define kGXScreenHeigh ([UIScreen mainScreen].bounds.size.height)
- #define kGXScreenWidth ([UIScreen mainScreen].bounds.size.width)
- #define kGXScreenSize ([UIScreen mainScreen].bounds.size)
- #define kGXScreenScale ([UIScreen mainScreen].scale)
|