GithubHelp home page GithubHelp logo

mall-1's Introduction

妆口袋

代码规范

  • src.main.java.com.scoprion
    • annotation 自定义注解
    • config 全局配置
    • exception 全局异常
    • interceptor 拦截器
    • mall 商城
      • backstage 运营
        • controller 控制器
        • mapper 数据库访问层
        • service 业务层
      • littlesoft 小程序
    • result 返回结果
    • utils 工具类
  • MallApplication 程序主入口
  • SwaggerConfig 接口配置
配置文件
  • src.main.resources
    • mapper SQL
    • static 静态文件
    • template 后台页面
    • application.properties 系统配置

######命名(!见名知意!)

  • 包命名小写 com.scoprion...

  • 类命名首字母大写 TestClass.class

  • 对象封装按照业务表书写 Order

  • 对象扩展按照业务表+ext OrderExt

  • 方法命名驼峰 public static void methodName(){}

  • 控制器 OrderController

  • 业务接口 OrderService

  • 业务实现 OrderServiceImpl

  • 业务数据 OrderMapper

  • 数据xml OrderMaper.xml

  • 字段or属性驼峰命名 String propertyName

  • 常量命名大写+下划线CONST_VALUE

  • 新增 add

  • 查询所有 findAll

  • 条件查询 findByCondition

  • 条件修改 updateByCondition

  • 条件删除 deleteByCondition

  • 删除所有 deleteAll

######代码

  • 方法不能超过70行

  • if判断带大括号{}

  • 字符串判断"a"equals(A)"

######注意事项

  • 提交信息写明确! 不要含糊表述!

mall-1's People

Contributors

fk123456 avatar hhh1994 avatar jackspeed avatar jarvens avatar ktdynamic avatar moonhong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.