# LegoBoot **Repository Path**: legocode/LegoBoot ## Basic Information - **Project Name**: LegoBoot - **Description**: No description available - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-11-06 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #LegoBoot #模块说明 ##一. 基础核心模块说明 1. LegoJpaBase: jpa基础,包括druid和jackson的配置、拼装specification查询、应答vo定义、所有实体类的基类; 2. LegoHandleException:restful异常处理,从数据库中获取异常消息,带参数的异常消息格式需符合String.format()的要求,包括ExceptionMessage表; 3. LegoAop:切面模块,包括restful请求和应答的log打印; 4. LegoUtil:工具集; 5. LegoCaptcha:验证码; ##二. 微信核心模块说明 1. LegoWechatPortal:微信入口模块;(特别说明:业务请继承AbstractWechatHandler.java类进行拓展) 2. LegoWechatBase:微信基础模块; 2.1. 包括WxCorp表、WxAccessToken表, 2.2. 微信AccessTokenApi、WechatIpApi、MenuApi, 2.3. 微信消息实体类定义。 3. LegoWechatBaseAdminApi:微信管理后台接口模块; 4. LegoWechatAesAop:微信Aes加解密切面模块,监控org.lego.wechat.aes.aop.aspect.WechatAesAspect.processRequest(..),优先级为10 ##三. 暂时不用模块 1. LegoActuator:启动spring boot admin的模块; ##四. 模块间依赖关系图 参见/doc/LegoBootModels.asta文件 #初步规定每个业务所需模块 1. Boot启动模块;(可以有两个,1个启动手机端,1个启动管理端) 2. Base基础模块,包括entity、repository、service; 3. Api接口模块(AdminApi管理后台接口模块、?); 4. Web网页模块(AdminWeb管理后台网页模块、MobileWeb手机网页模块、?); ##一. 各模块命名规则 1. 以上述各功能模块对应单词结尾; 2. maven的artifactId坐标:(业务以biz开头,非业务以lego开头)-(业务名,功能名)-(模块对应单词); 3. model名字:maven的artifactId坐标的骆驼表示法; 4. model的package包名:(org.lego).(业务模块加上biz).(业务名,功能名).(模块对应单词); 5. model的Application.java类名:model名字(如果以Lego开头,可省略Lego) + Application.java; 6. 如果Application.java类里有InitializingBean,务必注解@Bean,并指定name为:init + Application.java类名 #Ember-cli使用说明(呃......) 1. 在模块的src目录下新建web目录,存储源代码; 2. ember new --skip-git 创建项目; 3. ember build --output-path ../../main/resources/public/ --watch 编译并输出到src/main/resources/public/目录下,并监控文件变化自动重新编译; 4. ember g model 创建model; 5. ember g route 创建route; 6. ember g adapter 创建adapter; 7. ember g helper 创建helper; #业务模块说明 ##一. 乐传微信模块 1. BizWechatLechuanBoot:启动模块; 2. BizWechatLechuanBase:基础模块,包括entity、repository、service; 3. BizWechatLechuanAdminApi:管理后台接口模块; 4. BizWechatLechuanAdminWeb:管理后台网页模块; 5. BizWechatLechuanMobileApi:微信通信及微信网页接口模块; 6. BizWechatLechuanMobileWeb:微信网页模块; ##二. 内蒙古公安厅微信模块 1. BizWechatNmgatBase:基础模块; 2. BizWechatNmgatMobileBoot:启动微信端模块; 3. BizWechatNmgatMobileWeb:微信网页模块; 4. BizWechatNmgatMobileApi:微信通信及微信网页接口模块;