Name Last Update
..
config Loading commit data...
domain Loading commit data...
facade Loading commit data...
service Loading commit data...
web Loading commit data...
README Loading commit data...
[i项目]开发过程详细说明书.docx Loading commit data...
testLogin.php Loading commit data...
目录结构说明
========================================

BASE是处理来自i平台的前端请求的所有模块的父目录。目录下分为以下几个大目录

BASE
|_config
|_domain
|_facade
|_service
|_util
|_web
|_index.php

其中除了util文件夹外的所有文件夹下,都按照模块分为各个子文件夹。如:
BASE
|_config
  |_wave
  |_contact
  |_function
|_domain
  |_wave
  |_contact
  |_function
|_facade
|_service
|_util
|_web
|_index.php

文件夹功能解释:

config: 配置文件夹。facade,service, web中的配置文件,常量文件按照模块放在此文件夹下。命名规范为YC开头,如下:
YC[模块名首字母大写][类名].[配置文件类型].[数据层].inc.php(待确定)
如:YCWWaveSearcher.const.svc.inc.php
YCWWaveSearcher.const.fcd.inc.php
YCWWaveSearcher.const.web.inc.php


domain: 数据文件夹。按模块存储各个模块所要使用的数据对象。

facade: 业务接口层。此层按照业务逻辑划分模块。每个模块内的接口负责一对一处理前端web层的业务请求。并根据不同的业务调用后端服务层提供的服务

service:服务层。此层按照功能逻辑划分模块。接受参数为固定的数据格式。输出参数也为固定的数据格式。此数据格式按照一定规范在facade层被联合,封装处理后返回给web层

data:数据层。存储过程的应用逻辑。提供服务层数据库操作接口。

web: 接受处理请求的入口层。index.php会根据路由算法调用web层的不同的接口处理请求。web层调用facade层处理请求。

util: 公用工具文件夹。存放公用的工具接口。