Explorar o código

feat:后端项目,新增接口参数表

yang yi hai 10 meses
pai
achega
bea1b5b271
Modificáronse 1 ficheiros con 15 adicións e 0 borrados
  1. 15 0
      sql/init.sql

+ 15 - 0
sql/init.sql

@@ -33,3 +33,18 @@ create table if not exists `interface_info`
     `update_time` datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '更新时间',
     `delete_flag` tinyint default 0 not null comment '是否删除(0-未删, 1-已删)'
 ) comment '接口信息';
+
+-- 接口参数
+create table if not exists `interface_param`
+(
+    `id` bigint not null comment '主键' primary key,
+    `interface_info_id` bigint not null comment '接口信息id',
+    `name` varchar(256) not null comment '参数名称(参数类型为body时,名称使用body)',
+    `description` varchar(256) null comment '参数描述',
+    `value` varchar(512) not null comment '参数值',
+    `param_type` int default 0 not null comment '参数类型(0:query,1:body)',
+    `user_id` bigint not null comment '创建人',
+    `create_time` datetime default CURRENT_TIMESTAMP not null comment '创建时间',
+    `update_time` datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '更新时间',
+    `delete_flag` tinyint default 0 not null comment '是否删除(0-未删, 1-已删)'
+) comment '接口参数';