feat(iot): 服务参数添加外键类型和 ID 字段- 在 ServeMapper.xml 中添加了 input_param_foreign_type 和 input_param_foreign_id 字段
- 同样在 ServeMapper.xml 中添加了 output_param_foreign_type 和 output_param_foreign_id 字段 - 新增 sys_message 表用于消息管理,包括消息类型、发送方式、标题、内容等信息
This commit is contained in:
parent
68e00e21d5
commit
7d73b813c1
48
src/main/resources/db/gateway/public/sys_message.sql
Normal file
48
src/main/resources/db/gateway/public/sys_message.sql
Normal file
@ -0,0 +1,48 @@
|
||||
create table sys_message
|
||||
(
|
||||
id serial primary key,
|
||||
type integer not null,
|
||||
system boolean not null,
|
||||
email boolean not null,
|
||||
sms boolean not null,
|
||||
html boolean not null,
|
||||
title varchar,
|
||||
content varchar,
|
||||
remark varchar,
|
||||
create_time timestamp,
|
||||
create_by varchar,
|
||||
update_time timestamp,
|
||||
update_by varchar,
|
||||
dept_id bigint
|
||||
);
|
||||
|
||||
comment on table sys_message is '消息';
|
||||
|
||||
comment on column sys_message.type is '消息类型';
|
||||
|
||||
comment on column sys_message.system is '是否系统生成';
|
||||
|
||||
comment on column sys_message.email is '是否需要发送邮件';
|
||||
|
||||
comment on column sys_message.sms is '是否需要发送短信';
|
||||
|
||||
comment on column sys_message.html is '消息内容是否是富文本,TRUE则义富文本形式发送';
|
||||
|
||||
comment on column sys_message.title is '标题';
|
||||
|
||||
comment on column sys_message.content is '消息内容';
|
||||
|
||||
comment on column sys_message.remark is '说明';
|
||||
|
||||
comment on column sys_message.create_time is '创建时间';
|
||||
|
||||
comment on column sys_message.create_by is '创建人';
|
||||
|
||||
comment on column sys_message.update_time is '更新时间';
|
||||
|
||||
comment on column sys_message.update_by is '更新人';
|
||||
|
||||
comment on column sys_message.dept_id is '部门权限id';
|
||||
|
||||
alter table sys_message
|
||||
owner to gitea;
|
@ -38,6 +38,8 @@
|
||||
input_params.uint as input_param_uint,
|
||||
input_params.type as input_param_type,
|
||||
input_params.identifier as input_param_identifier,
|
||||
input_params.foreign_type as input_param_foreign_type,
|
||||
input_params.foreign_id as input_param_foreign_id,
|
||||
input_params.name as input_param_name,
|
||||
input_params.remark as input_param_remark,
|
||||
output_params.id as output_param_id,
|
||||
@ -45,6 +47,8 @@
|
||||
output_params.uint as output_param_uint,
|
||||
output_params.type as output_param_type,
|
||||
output_params.identifier as output_param_identifier,
|
||||
output_params.foreign_type as output_param_foreign_type,
|
||||
output_params.foreign_id as output_param_foreign_id,
|
||||
output_params.name as output_param_name,
|
||||
output_params.remark as output_param_remark
|
||||
FROM iot_serve s
|
||||
|
Loading…
Reference in New Issue
Block a user