TODO Arrangement Notes

  • Realm Object

/xim/objc/Realm, 12 OC Class + 1 swift class, mainly related with IM

user -> 聊天室 -> 群聊 (Department?)

questions:

  1. RLMSupport.swift对应业务逻辑是什么?查看数据库时,无对应数据。
  • 邮件

Root UI: XMTabBarController

'工作' tab: XMWorkFunctionViewController, 打开’邮件': tapButton-> checkBind -> openMail -> XMMailViewController -> XMMail前缀搜索文件

1、写邮件

XMMailEditViewController

NSUserDefaults 路径:/Library/Preference/com.xiaoman.im.plist

XMMailEidtParamJsonModel : 邮件发送者,接收者等业务

XMMailBindMail : 对应不同邮箱服务讯息

javascriptWithCSSString

  • 与后台交互

group: /xim/objc/Common

聊天接口层: XMWebServiceManager 后台java

接受到消息和发送消息,在GCDAsyncSocket的read和write的两个回调,接收到消息

操作realm数据库,self.realmQueue, 存入数据库handleNotification方法(I’m not sure), UI更新如何做的呢?

除聊天外其它后台交互接口层:XMCRMServiceManager, 后台php接口, 返回jason, 后台返回数据解析用第三方开源库NSObject+MJKeyValue,分发解析后台数据: ?

销售管理

SalesTabBarController

下属客户: XMCrmCustomerListViewController

写跟进bug: XMCrmCustomerListViewController showMoreView remark跟进

SalesCustomerViewController管理’全部客户’ 个人客户 公海客户的切换?

客户关系下的线索

/app/customerRead/trailList getCompanyTrailListWithParma

UI: XMCRMTrailListViewController , 数据结构: XMCRMGetTrailListJsonModel ->

后台数据返回基类: XMCRMResponseJsonModel

— 审批

审批列表: ApprovalList…..swift

审批详情: ApprovalViewController.swift 这个文件中包含所有和审批相关业务,如ApprovalWriteViewController(编辑) ApprovalDetailViewController

对应server接口: 1.listApproval 2. approvalInfo 查看每个审批详情,approval list使用的字段是approval_id, 调用此接口传的review_id就是这个approval_id

业务逻辑: 审批针对,有1other 2quotation 3pi 4order 5mail , other没有任何针对,因此审批对象显示为空

SwiftyJSON

responseObject[“detail”, “name”]

  • project tool class

/xim/objc/Category Utility Common

常用全局变量定义: XMUtility

  • 第三方开源库原理

protocol buffer

XMCrmCustomerListViewController可以看下实现

Shift Command V

NSLog(@"fiona------------------%@,%@,%@", self.headerView.param.sender,mailSignature, signature);

NSString *mailSignature = [[NSUserDefaults standardUserDefaults] objectForKey:[NSString stringWithFormat:@“%@%@",@"com.xiaoman.im.userdefault.mail_signature_new",@"[email protected]"]];

command + shift + o

results matching ""

    No results matching ""