npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

qa-code-generator-cli

v1.0.14

Published

- 生成基础增删改查前后端代码,包括java、vue、angular - 前后端接口会根据模块名称保持统一 ``` 1.分页列表接口 2.不分页列表接口 3.新增接口 4.编辑接口 5.编辑时单个查询接口 6.查看时单个获取接口 7.单个删除接口 8.批量删除接口 ```

Downloads

40

Readme

代码生成工具

作用

  • 生成基础增删改查前后端代码,包括java、vue、angular
  • 前后端接口会根据模块名称保持统一
 1.分页列表接口
 2.不分页列表接口
 3.新增接口
 4.编辑接口
 5.编辑时单个查询接口
 6.查看时单个获取接口
 7.单个删除接口
 8.批量删除接口

使用方式

1.安装

npm install qa-code-generator-cli -g

2.生成 java 代码

在需要生成的目录下命令行运行: qa-java-coder
依次输入:packageName(包名)、moduleName(模块名称)、项目描述

如: 输入moduleName为userMgt

生成目录为:

userMgt
├─beans  
│      UserMgtDTO.java --------------------------------------# 新增/编辑 参数
│      UserMgtListDTO.java ----------------------------------# 列表查询参数
│      UserMgtListVO.java -----------------------------------# 列表返回参数
│      UserMgtVO.java ---------------------------------------# 查看接口返回参数
│      
├─controller
│      UserMgtController.java
│      
├─entity
│      UserMgtEntity.java
│      
├─repository
│      UserMgtRepository.java
│      
└─service
    │  UserMgtService.java
    │  
    └─impl
            UserMgtServiceImpl.java

3.生成 vue 代码

在需要生成的目录下命令行运行: qa-vue-coder
输入模块名称,如:userMgt

生成目录为:

userMgt
│  UserMgt.vue -----------------------------------------------# 列表页
│  userMgtService.js -----------------------------------------# http接口声明
│  
└─components
        UserMgtEditModal.vue ---------------------------------# 新增/编辑弹窗
        UserMgtViewModal.vue ---------------------------------# 查看弹窗

4.生成 angular 代码

在需要生成的目录下命令行运行: qa-angular-coder
输入模块名称,如:userMgt

生成目录为:

user-mgt
│  user-mgt-routing.module.ts --------------------------------# 模块路由配置页
│  user-mgt.module.ts ----------------------------------------# 模块配置页
│  
├─bean
│      userMgtDTO.ts -----------------------------------------# 新增/编辑时参数类型
│      userMgtSearchDTO.ts -----------------------------------# 列表查询参数类型
│      userMgtVO.ts ------------------------------------------# 查看时返回数据类型
│      
├─edit -------------------------------------------------------# 新增/编辑弹窗
│      edit.component.html 
│      edit.component.ts
│      
├─less -------------------------------------------------------# 模块样式
│      userMgt.less
│      
├─list -------------------------------------------------------# 列表页
│      list.component.html
│      list.component.ts
│      
├─service 
│      user-mgt.service.ts -----------------------------------# http接口声明
│      
└─view -------------------------------------------------------# 查看弹窗
        view.component.html
        view.component.ts