mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-09-08 14:12:29 +08:00
代码生成器:增加单元测试,🛫
This commit is contained in:
@@ -0,0 +1,144 @@
|
||||
{
|
||||
"table": {
|
||||
"scene" : 1,
|
||||
"tableName" : "infra_student_contact",
|
||||
"tableComment" : "学生联系人表",
|
||||
"moduleName" : "infra",
|
||||
"businessName" : "demo",
|
||||
"className" : "InfraStudentContact",
|
||||
"classComment" : "学生联系人",
|
||||
"author" : "芋道源码"
|
||||
},
|
||||
"columns": [ {
|
||||
"columnName" : "id",
|
||||
"dataType" : "BIGINT",
|
||||
"columnComment" : "编号",
|
||||
"primaryKey" : true,
|
||||
"autoIncrement" : true,
|
||||
"javaType" : "Long",
|
||||
"javaField" : "id",
|
||||
"example" : "1024",
|
||||
"updateOperation" : true,
|
||||
"listOperationResult" : true
|
||||
}, {
|
||||
"id" : 100,
|
||||
"columnName" : "student_id",
|
||||
"dataType" : "BIGINT",
|
||||
"columnComment" : "学生编号",
|
||||
"javaType" : "Long",
|
||||
"javaField" : "studentId",
|
||||
"example" : "2048",
|
||||
"createOperation" : true,
|
||||
"updateOperation" : true,
|
||||
"listOperationResult" : true
|
||||
}, {
|
||||
"columnName" : "name",
|
||||
"dataType" : "VARCHAR",
|
||||
"columnComment" : "名字",
|
||||
"javaType" : "String",
|
||||
"javaField" : "name",
|
||||
"example" : "芋头",
|
||||
"createOperation" : true,
|
||||
"updateOperation" : true,
|
||||
"listOperation" : true,
|
||||
"listOperationCondition" : "LIKE",
|
||||
"listOperationResult" : true,
|
||||
"htmlType" : "input"
|
||||
}, {
|
||||
"columnName" : "description",
|
||||
"dataType" : "VARCHAR",
|
||||
"columnComment" : "简介",
|
||||
"javaType" : "String",
|
||||
"javaField" : "description",
|
||||
"example" : "我是介绍",
|
||||
"createOperation" : true,
|
||||
"updateOperation" : true,
|
||||
"listOperationResult" : true,
|
||||
"htmlType" : "textarea"
|
||||
}, {
|
||||
"columnName" : "birthday",
|
||||
"dataType" : "DATE",
|
||||
"columnComment" : "出生日期",
|
||||
"javaType" : "LocalDateTime",
|
||||
"javaField" : "birthday",
|
||||
"createOperation" : true,
|
||||
"updateOperation" : true,
|
||||
"listOperation" : true,
|
||||
"listOperationCondition" : "=",
|
||||
"listOperationResult" : true,
|
||||
"htmlType" : "datetime"
|
||||
}, {
|
||||
"columnName" : "sex",
|
||||
"dataType" : "INTEGER",
|
||||
"columnComment" : "性别",
|
||||
"javaType" : "Integer",
|
||||
"javaField" : "sex",
|
||||
"dictType" : "system_user_sex",
|
||||
"example" : "1",
|
||||
"createOperation" : true,
|
||||
"updateOperation" : true,
|
||||
"listOperation" : true,
|
||||
"listOperationCondition" : "=",
|
||||
"listOperationResult" : true,
|
||||
"htmlType" : "select"
|
||||
}, {
|
||||
"columnName" : "enabled",
|
||||
"dataType" : "BOOLEAN",
|
||||
"columnComment" : "是否有效",
|
||||
"javaType" : "Boolean",
|
||||
"javaField" : "enabled",
|
||||
"dictType" : "infra_boolean_string",
|
||||
"example" : "true",
|
||||
"createOperation" : true,
|
||||
"updateOperation" : true,
|
||||
"listOperation" : true,
|
||||
"listOperationCondition" : "=",
|
||||
"listOperationResult" : true,
|
||||
"htmlType" : "radio"
|
||||
}, {
|
||||
"columnName" : "avatar",
|
||||
"dataType" : "VARCHAR",
|
||||
"columnComment" : "头像",
|
||||
"javaType" : "String",
|
||||
"javaField" : "avatar",
|
||||
"example" : "https://www.iocoder.cn/1.png",
|
||||
"createOperation" : true,
|
||||
"updateOperation" : true,
|
||||
"listOperationResult" : true,
|
||||
"htmlType" : "imageUpload"
|
||||
}, {
|
||||
"columnName" : "video",
|
||||
"dataType" : "VARCHAR",
|
||||
"columnComment" : "附件",
|
||||
"nullable" : true,
|
||||
"javaType" : "String",
|
||||
"javaField" : "video",
|
||||
"example" : "https://www.iocoder.cn/1.mp4",
|
||||
"createOperation" : true,
|
||||
"updateOperation" : true,
|
||||
"listOperationResult" : true,
|
||||
"htmlType" : "fileUpload"
|
||||
}, {
|
||||
"columnName" : "memo",
|
||||
"dataType" : "VARCHAR",
|
||||
"columnComment" : "备注",
|
||||
"javaType" : "String",
|
||||
"javaField" : "memo",
|
||||
"example" : "我是备注",
|
||||
"createOperation" : true,
|
||||
"updateOperation" : true,
|
||||
"listOperationResult" : true,
|
||||
"htmlType" : "editor"
|
||||
}, {
|
||||
"columnName" : "create_time",
|
||||
"dataType" : "DATE",
|
||||
"columnComment" : "创建时间",
|
||||
"nullable" : true,
|
||||
"javaType" : "LocalDateTime",
|
||||
"javaField" : "createTime",
|
||||
"listOperation" : true,
|
||||
"listOperationCondition" : "BETWEEN",
|
||||
"listOperationResult" : true,
|
||||
"htmlType" : "datetime"
|
||||
} ]
|
||||
}
|
Reference in New Issue
Block a user