Skip to content

Create CRUD

We can use Cli command or Menu command to create a crud code skeleton

For example, we create a student CRUD in the module demo-student

Cli command

bash
$ vona :tools:crud student --module=demo-student

TIP

Context Menu - [Module Path]: Vona Tools/Generate Crud

Directory structure

NameDescription
controller/student.tsController
service/student.tsService
model/student.tsModel
entity/student.tsEntity
dto/studentCreate.tsCreate Dto
dto/studentUpdate.tsUpdate Dto
bean/meta.version.tsMeta Version
bean/meta.index.tsMeta Index
config/locale/en-us.tsLocale: en-us
config/locale/zh-cn.tsLocale: zh-cn
test/student.test.tsTest

Released under the MIT License.