Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
IoTSharp
IoTSharp
提交
5a1bb822
IoTSharp
项目概览
IoTSharp
/
IoTSharp
10 个月 前同步成功
通知
15
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
IoTSharp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5a1bb822
编写于
12月 02, 2022
作者:
麦壳饼
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改拼写问题。 修改 租户查询 客户查询
上级
fecec1c6
变更
17
展开全部
隐藏空白更改
内联
并排
Showing
17 changed file
with
11268 addition
and
18 deletion
+11268
-18
IoTSharp.Data.Storage/IoTSharp.Data.MySQL/Migrations/20221202074318_ModifyEmailSpell.Designer.cs
...QL/Migrations/20221202074318_ModifyEmailSpell.Designer.cs
+2644
-0
IoTSharp.Data.Storage/IoTSharp.Data.MySQL/Migrations/20221202074318_ModifyEmailSpell.cs
....Data.MySQL/Migrations/20221202074318_ModifyEmailSpell.cs
+25
-0
IoTSharp.Data.Storage/IoTSharp.Data.MySQL/Migrations/ApplicationDbContextModelSnapshot.cs
...ata.MySQL/Migrations/ApplicationDbContextModelSnapshot.cs
+1
-1
IoTSharp.Data.Storage/IoTSharp.Data.PostgreSQL/Migrations/20221202074042_ModifyEmailSpell.Designer.cs
...QL/Migrations/20221202074042_ModifyEmailSpell.Designer.cs
+2663
-0
IoTSharp.Data.Storage/IoTSharp.Data.PostgreSQL/Migrations/20221202074042_ModifyEmailSpell.cs
....PostgreSQL/Migrations/20221202074042_ModifyEmailSpell.cs
+95
-0
IoTSharp.Data.Storage/IoTSharp.Data.PostgreSQL/Migrations/ApplicationDbContextModelSnapshot.cs
...ostgreSQL/Migrations/ApplicationDbContextModelSnapshot.cs
+22
-1
IoTSharp.Data.Storage/IoTSharp.Data.SqlServer/Migrations/20221202074541_ModifyEmailSpell.Designer.cs
...er/Migrations/20221202074541_ModifyEmailSpell.Designer.cs
+2665
-0
IoTSharp.Data.Storage/IoTSharp.Data.SqlServer/Migrations/20221202074541_ModifyEmailSpell.cs
...a.SqlServer/Migrations/20221202074541_ModifyEmailSpell.cs
+95
-0
IoTSharp.Data.Storage/IoTSharp.Data.SqlServer/Migrations/ApplicationDbContextModelSnapshot.cs
...SqlServer/Migrations/ApplicationDbContextModelSnapshot.cs
+22
-1
IoTSharp.Data.Storage/IoTSharp.Data.Sqlite/Migrations/20221202074402_ModifyEmailSpell.Designer.cs
...te/Migrations/20221202074402_ModifyEmailSpell.Designer.cs
+2894
-0
IoTSharp.Data.Storage/IoTSharp.Data.Sqlite/Migrations/20221202074402_ModifyEmailSpell.cs
...Data.Sqlite/Migrations/20221202074402_ModifyEmailSpell.cs
+102
-0
IoTSharp.Data.Storage/IoTSharp.Data.Sqlite/Migrations/ApplicationDbContextModelSnapshot.cs
...ta.Sqlite/Migrations/ApplicationDbContextModelSnapshot.cs
+29
-1
IoTSharp/ClientAppVue
IoTSharp/ClientAppVue
+1
-1
IoTSharp/Controllers/AccountController.cs
IoTSharp/Controllers/AccountController.cs
+3
-3
IoTSharp/Controllers/CustomersController.cs
IoTSharp/Controllers/CustomersController.cs
+4
-7
IoTSharp/Controllers/InstallerController.cs
IoTSharp/Controllers/InstallerController.cs
+1
-1
IoTSharp/Extensions/ApplicationDBInitializer.cs
IoTSharp/Extensions/ApplicationDBInitializer.cs
+2
-2
未找到文件。
IoTSharp.Data.Storage/IoTSharp.Data.MySQL/Migrations/20221202074318_ModifyEmailSpell.Designer.cs
0 → 100644
浏览文件 @
5a1bb822
此差异已折叠。
点击以展开。
IoTSharp.Data.Storage/IoTSharp.Data.MySQL/Migrations/20221202074318_ModifyEmailSpell.cs
0 → 100644
浏览文件 @
5a1bb822
using
Microsoft.EntityFrameworkCore.Migrations
;
#
nullable
disable
namespace
IoTSharp.Data.MySql.Migrations
{
public
partial
class
ModifyEmailSpell
:
Migration
{
protected
override
void
Up
(
MigrationBuilder
migrationBuilder
)
{
migrationBuilder
.
RenameColumn
(
name
:
"EMail"
,
table
:
"Tenant"
,
newName
:
"Email"
);
}
protected
override
void
Down
(
MigrationBuilder
migrationBuilder
)
{
migrationBuilder
.
RenameColumn
(
name
:
"Email"
,
table
:
"Tenant"
,
newName
:
"EMail"
);
}
}
}
IoTSharp.Data.Storage/IoTSharp.Data.MySQL/Migrations/ApplicationDbContextModelSnapshot.cs
浏览文件 @
5a1bb822
...
@@ -1864,7 +1864,7 @@ namespace IoTSharp.Data.MySql.Migrations
...
@@ -1864,7 +1864,7 @@ namespace IoTSharp.Data.MySql.Migrations
b
.
Property
<
bool
>(
"Deleted"
)
b
.
Property
<
bool
>(
"Deleted"
)
.
HasColumnType
(
"tinyint(1)"
);
.
HasColumnType
(
"tinyint(1)"
);
b
.
Property
<
string
>(
"E
M
ail"
)
b
.
Property
<
string
>(
"E
m
ail"
)
.
HasColumnType
(
"longtext"
);
.
HasColumnType
(
"longtext"
);
b
.
Property
<
string
>(
"Name"
)
b
.
Property
<
string
>(
"Name"
)
...
...
IoTSharp.Data.Storage/IoTSharp.Data.PostgreSQL/Migrations/20221202074042_ModifyEmailSpell.Designer.cs
0 → 100644
浏览文件 @
5a1bb822
此差异已折叠。
点击以展开。
IoTSharp.Data.Storage/IoTSharp.Data.PostgreSQL/Migrations/20221202074042_ModifyEmailSpell.cs
0 → 100644
浏览文件 @
5a1bb822
using
Microsoft.EntityFrameworkCore.Migrations
;
#
nullable
disable
namespace
IoTSharp.Migrations
{
public
partial
class
ModifyEmailSpell
:
Migration
{
protected
override
void
Up
(
MigrationBuilder
migrationBuilder
)
{
migrationBuilder
.
RenameColumn
(
name
:
"EMail"
,
table
:
"Tenant"
,
newName
:
"Email"
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"FlowClass"
,
table
:
"Flows"
,
type
:
"text"
,
nullable
:
true
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"FlowIcon"
,
table
:
"Flows"
,
type
:
"text"
,
nullable
:
true
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"FlowNameSpace"
,
table
:
"Flows"
,
type
:
"text"
,
nullable
:
true
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"FlowShapeType"
,
table
:
"Flows"
,
type
:
"text"
,
nullable
:
true
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"FlowTag"
,
table
:
"Flows"
,
type
:
"text"
,
nullable
:
true
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"Left"
,
table
:
"Flows"
,
type
:
"text"
,
nullable
:
true
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"Top"
,
table
:
"Flows"
,
type
:
"text"
,
nullable
:
true
);
}
protected
override
void
Down
(
MigrationBuilder
migrationBuilder
)
{
migrationBuilder
.
DropColumn
(
name
:
"FlowClass"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"FlowIcon"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"FlowNameSpace"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"FlowShapeType"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"FlowTag"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"Left"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"Top"
,
table
:
"Flows"
);
migrationBuilder
.
RenameColumn
(
name
:
"Email"
,
table
:
"Tenant"
,
newName
:
"EMail"
);
}
}
}
IoTSharp.Data.Storage/IoTSharp.Data.PostgreSQL/Migrations/ApplicationDbContextModelSnapshot.cs
浏览文件 @
5a1bb822
...
@@ -1256,12 +1256,27 @@ namespace IoTSharp.Migrations
...
@@ -1256,12 +1256,27 @@ namespace IoTSharp.Migrations
b
.
Property
<
Guid
?>(
"ExecutorId"
)
b
.
Property
<
Guid
?>(
"ExecutorId"
)
.
HasColumnType
(
"uuid"
);
.
HasColumnType
(
"uuid"
);
b
.
Property
<
string
>(
"FlowClass"
)
.
HasColumnType
(
"text"
);
b
.
Property
<
string
>(
"FlowIcon"
)
.
HasColumnType
(
"text"
);
b
.
Property
<
string
>(
"FlowNameSpace"
)
.
HasColumnType
(
"text"
);
b
.
Property
<
Guid
?>(
"FlowRuleRuleId"
)
b
.
Property
<
Guid
?>(
"FlowRuleRuleId"
)
.
HasColumnType
(
"uuid"
);
.
HasColumnType
(
"uuid"
);
b
.
Property
<
string
>(
"FlowShapeType"
)
.
HasColumnType
(
"text"
);
b
.
Property
<
int
>(
"FlowStatus"
)
b
.
Property
<
int
>(
"FlowStatus"
)
.
HasColumnType
(
"integer"
);
.
HasColumnType
(
"integer"
);
b
.
Property
<
string
>(
"FlowTag"
)
.
HasColumnType
(
"text"
);
b
.
Property
<
string
>(
"FlowType"
)
b
.
Property
<
string
>(
"FlowType"
)
.
HasColumnType
(
"text"
);
.
HasColumnType
(
"text"
);
...
@@ -1274,6 +1289,9 @@ namespace IoTSharp.Migrations
...
@@ -1274,6 +1289,9 @@ namespace IoTSharp.Migrations
b
.
Property
<
string
>(
"Incoming"
)
b
.
Property
<
string
>(
"Incoming"
)
.
HasColumnType
(
"text"
);
.
HasColumnType
(
"text"
);
b
.
Property
<
string
>(
"Left"
)
.
HasColumnType
(
"text"
);
b
.
Property
<
string
>(
"NodeProcessClass"
)
b
.
Property
<
string
>(
"NodeProcessClass"
)
.
HasColumnType
(
"text"
);
.
HasColumnType
(
"text"
);
...
@@ -1316,6 +1334,9 @@ namespace IoTSharp.Migrations
...
@@ -1316,6 +1334,9 @@ namespace IoTSharp.Migrations
b
.
Property
<
DateTime
>(
"TesterDateTime"
)
b
.
Property
<
DateTime
>(
"TesterDateTime"
)
.
HasColumnType
(
"timestamp with time zone"
);
.
HasColumnType
(
"timestamp with time zone"
);
b
.
Property
<
string
>(
"Top"
)
.
HasColumnType
(
"text"
);
b
.
Property
<
string
>(
"bpmnid"
)
b
.
Property
<
string
>(
"bpmnid"
)
.
HasColumnType
(
"text"
);
.
HasColumnType
(
"text"
);
...
@@ -1858,7 +1879,7 @@ namespace IoTSharp.Migrations
...
@@ -1858,7 +1879,7 @@ namespace IoTSharp.Migrations
b
.
Property
<
bool
>(
"Deleted"
)
b
.
Property
<
bool
>(
"Deleted"
)
.
HasColumnType
(
"boolean"
);
.
HasColumnType
(
"boolean"
);
b
.
Property
<
string
>(
"E
M
ail"
)
b
.
Property
<
string
>(
"E
m
ail"
)
.
HasColumnType
(
"text"
);
.
HasColumnType
(
"text"
);
b
.
Property
<
string
>(
"Name"
)
b
.
Property
<
string
>(
"Name"
)
...
...
IoTSharp.Data.Storage/IoTSharp.Data.SqlServer/Migrations/20221202074541_ModifyEmailSpell.Designer.cs
0 → 100644
浏览文件 @
5a1bb822
此差异已折叠。
点击以展开。
IoTSharp.Data.Storage/IoTSharp.Data.SqlServer/Migrations/20221202074541_ModifyEmailSpell.cs
0 → 100644
浏览文件 @
5a1bb822
using
Microsoft.EntityFrameworkCore.Migrations
;
#
nullable
disable
namespace
IoTSharp.Data.SqlServer.Migrations
{
public
partial
class
ModifyEmailSpell
:
Migration
{
protected
override
void
Up
(
MigrationBuilder
migrationBuilder
)
{
migrationBuilder
.
RenameColumn
(
name
:
"EMail"
,
table
:
"Tenant"
,
newName
:
"Email"
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"FlowClass"
,
table
:
"Flows"
,
type
:
"nvarchar(max)"
,
nullable
:
true
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"FlowIcon"
,
table
:
"Flows"
,
type
:
"nvarchar(max)"
,
nullable
:
true
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"FlowNameSpace"
,
table
:
"Flows"
,
type
:
"nvarchar(max)"
,
nullable
:
true
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"FlowShapeType"
,
table
:
"Flows"
,
type
:
"nvarchar(max)"
,
nullable
:
true
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"FlowTag"
,
table
:
"Flows"
,
type
:
"nvarchar(max)"
,
nullable
:
true
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"Left"
,
table
:
"Flows"
,
type
:
"nvarchar(max)"
,
nullable
:
true
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"Top"
,
table
:
"Flows"
,
type
:
"nvarchar(max)"
,
nullable
:
true
);
}
protected
override
void
Down
(
MigrationBuilder
migrationBuilder
)
{
migrationBuilder
.
DropColumn
(
name
:
"FlowClass"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"FlowIcon"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"FlowNameSpace"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"FlowShapeType"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"FlowTag"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"Left"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"Top"
,
table
:
"Flows"
);
migrationBuilder
.
RenameColumn
(
name
:
"Email"
,
table
:
"Tenant"
,
newName
:
"EMail"
);
}
}
}
IoTSharp.Data.Storage/IoTSharp.Data.SqlServer/Migrations/ApplicationDbContextModelSnapshot.cs
浏览文件 @
5a1bb822
...
@@ -1256,12 +1256,27 @@ namespace IoTSharp.Data.SqlServer.Migrations
...
@@ -1256,12 +1256,27 @@ namespace IoTSharp.Data.SqlServer.Migrations
b
.
Property
<
Guid
?>(
"ExecutorId"
)
b
.
Property
<
Guid
?>(
"ExecutorId"
)
.
HasColumnType
(
"uniqueidentifier"
);
.
HasColumnType
(
"uniqueidentifier"
);
b
.
Property
<
string
>(
"FlowClass"
)
.
HasColumnType
(
"nvarchar(max)"
);
b
.
Property
<
string
>(
"FlowIcon"
)
.
HasColumnType
(
"nvarchar(max)"
);
b
.
Property
<
string
>(
"FlowNameSpace"
)
.
HasColumnType
(
"nvarchar(max)"
);
b
.
Property
<
Guid
?>(
"FlowRuleRuleId"
)
b
.
Property
<
Guid
?>(
"FlowRuleRuleId"
)
.
HasColumnType
(
"uniqueidentifier"
);
.
HasColumnType
(
"uniqueidentifier"
);
b
.
Property
<
string
>(
"FlowShapeType"
)
.
HasColumnType
(
"nvarchar(max)"
);
b
.
Property
<
int
>(
"FlowStatus"
)
b
.
Property
<
int
>(
"FlowStatus"
)
.
HasColumnType
(
"int"
);
.
HasColumnType
(
"int"
);
b
.
Property
<
string
>(
"FlowTag"
)
.
HasColumnType
(
"nvarchar(max)"
);
b
.
Property
<
string
>(
"FlowType"
)
b
.
Property
<
string
>(
"FlowType"
)
.
HasColumnType
(
"nvarchar(max)"
);
.
HasColumnType
(
"nvarchar(max)"
);
...
@@ -1274,6 +1289,9 @@ namespace IoTSharp.Data.SqlServer.Migrations
...
@@ -1274,6 +1289,9 @@ namespace IoTSharp.Data.SqlServer.Migrations
b
.
Property
<
string
>(
"Incoming"
)
b
.
Property
<
string
>(
"Incoming"
)
.
HasColumnType
(
"nvarchar(max)"
);
.
HasColumnType
(
"nvarchar(max)"
);
b
.
Property
<
string
>(
"Left"
)
.
HasColumnType
(
"nvarchar(max)"
);
b
.
Property
<
string
>(
"NodeProcessClass"
)
b
.
Property
<
string
>(
"NodeProcessClass"
)
.
HasColumnType
(
"nvarchar(max)"
);
.
HasColumnType
(
"nvarchar(max)"
);
...
@@ -1316,6 +1334,9 @@ namespace IoTSharp.Data.SqlServer.Migrations
...
@@ -1316,6 +1334,9 @@ namespace IoTSharp.Data.SqlServer.Migrations
b
.
Property
<
DateTime
>(
"TesterDateTime"
)
b
.
Property
<
DateTime
>(
"TesterDateTime"
)
.
HasColumnType
(
"datetime2"
);
.
HasColumnType
(
"datetime2"
);
b
.
Property
<
string
>(
"Top"
)
.
HasColumnType
(
"nvarchar(max)"
);
b
.
Property
<
string
>(
"bpmnid"
)
b
.
Property
<
string
>(
"bpmnid"
)
.
HasColumnType
(
"nvarchar(max)"
);
.
HasColumnType
(
"nvarchar(max)"
);
...
@@ -1858,7 +1879,7 @@ namespace IoTSharp.Data.SqlServer.Migrations
...
@@ -1858,7 +1879,7 @@ namespace IoTSharp.Data.SqlServer.Migrations
b
.
Property
<
bool
>(
"Deleted"
)
b
.
Property
<
bool
>(
"Deleted"
)
.
HasColumnType
(
"bit"
);
.
HasColumnType
(
"bit"
);
b
.
Property
<
string
>(
"E
M
ail"
)
b
.
Property
<
string
>(
"E
m
ail"
)
.
HasColumnType
(
"nvarchar(max)"
);
.
HasColumnType
(
"nvarchar(max)"
);
b
.
Property
<
string
>(
"Name"
)
b
.
Property
<
string
>(
"Name"
)
...
...
IoTSharp.Data.Storage/IoTSharp.Data.Sqlite/Migrations/20221202074402_ModifyEmailSpell.Designer.cs
0 → 100644
浏览文件 @
5a1bb822
此差异已折叠。
点击以展开。
IoTSharp.Data.Storage/IoTSharp.Data.Sqlite/Migrations/20221202074402_ModifyEmailSpell.cs
0 → 100644
浏览文件 @
5a1bb822
using
Microsoft.EntityFrameworkCore.Migrations
;
#
nullable
disable
namespace
IoTSharp.Data.Sqlite.Migrations
{
public
partial
class
ModifyEmailSpell
:
Migration
{
protected
override
void
Up
(
MigrationBuilder
migrationBuilder
)
{
migrationBuilder
.
RenameColumn
(
name
:
"EMail"
,
table
:
"Tenant"
,
newName
:
"Email"
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"FlowClass"
,
table
:
"Flows"
,
type
:
"TEXT"
,
nullable
:
true
,
collation
:
"NOCASE"
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"FlowIcon"
,
table
:
"Flows"
,
type
:
"TEXT"
,
nullable
:
true
,
collation
:
"NOCASE"
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"FlowNameSpace"
,
table
:
"Flows"
,
type
:
"TEXT"
,
nullable
:
true
,
collation
:
"NOCASE"
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"FlowShapeType"
,
table
:
"Flows"
,
type
:
"TEXT"
,
nullable
:
true
,
collation
:
"NOCASE"
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"FlowTag"
,
table
:
"Flows"
,
type
:
"TEXT"
,
nullable
:
true
,
collation
:
"NOCASE"
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"Left"
,
table
:
"Flows"
,
type
:
"TEXT"
,
nullable
:
true
,
collation
:
"NOCASE"
);
migrationBuilder
.
AddColumn
<
string
>(
name
:
"Top"
,
table
:
"Flows"
,
type
:
"TEXT"
,
nullable
:
true
,
collation
:
"NOCASE"
);
}
protected
override
void
Down
(
MigrationBuilder
migrationBuilder
)
{
migrationBuilder
.
DropColumn
(
name
:
"FlowClass"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"FlowIcon"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"FlowNameSpace"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"FlowShapeType"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"FlowTag"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"Left"
,
table
:
"Flows"
);
migrationBuilder
.
DropColumn
(
name
:
"Top"
,
table
:
"Flows"
);
migrationBuilder
.
RenameColumn
(
name
:
"Email"
,
table
:
"Tenant"
,
newName
:
"EMail"
);
}
}
}
IoTSharp.Data.Storage/IoTSharp.Data.Sqlite/Migrations/ApplicationDbContextModelSnapshot.cs
浏览文件 @
5a1bb822
...
@@ -1376,12 +1376,32 @@ namespace IoTSharp.Data.Sqlite.Migrations
...
@@ -1376,12 +1376,32 @@ namespace IoTSharp.Data.Sqlite.Migrations
b
.
Property
<
Guid
?>(
"ExecutorId"
)
b
.
Property
<
Guid
?>(
"ExecutorId"
)
.
HasColumnType
(
"TEXT"
);
.
HasColumnType
(
"TEXT"
);
b
.
Property
<
string
>(
"FlowClass"
)
.
HasColumnType
(
"TEXT"
)
.
UseCollation
(
"NOCASE"
);
b
.
Property
<
string
>(
"FlowIcon"
)
.
HasColumnType
(
"TEXT"
)
.
UseCollation
(
"NOCASE"
);
b
.
Property
<
string
>(
"FlowNameSpace"
)
.
HasColumnType
(
"TEXT"
)
.
UseCollation
(
"NOCASE"
);
b
.
Property
<
Guid
?>(
"FlowRuleRuleId"
)
b
.
Property
<
Guid
?>(
"FlowRuleRuleId"
)
.
HasColumnType
(
"TEXT"
);
.
HasColumnType
(
"TEXT"
);
b
.
Property
<
string
>(
"FlowShapeType"
)
.
HasColumnType
(
"TEXT"
)
.
UseCollation
(
"NOCASE"
);
b
.
Property
<
int
>(
"FlowStatus"
)
b
.
Property
<
int
>(
"FlowStatus"
)
.
HasColumnType
(
"INTEGER"
);
.
HasColumnType
(
"INTEGER"
);
b
.
Property
<
string
>(
"FlowTag"
)
.
HasColumnType
(
"TEXT"
)
.
UseCollation
(
"NOCASE"
);
b
.
Property
<
string
>(
"FlowType"
)
b
.
Property
<
string
>(
"FlowType"
)
.
HasColumnType
(
"TEXT"
)
.
HasColumnType
(
"TEXT"
)
.
UseCollation
(
"NOCASE"
);
.
UseCollation
(
"NOCASE"
);
...
@@ -1398,6 +1418,10 @@ namespace IoTSharp.Data.Sqlite.Migrations
...
@@ -1398,6 +1418,10 @@ namespace IoTSharp.Data.Sqlite.Migrations
.
HasColumnType
(
"TEXT"
)
.
HasColumnType
(
"TEXT"
)
.
UseCollation
(
"NOCASE"
);
.
UseCollation
(
"NOCASE"
);
b
.
Property
<
string
>(
"Left"
)
.
HasColumnType
(
"TEXT"
)
.
UseCollation
(
"NOCASE"
);
b
.
Property
<
string
>(
"NodeProcessClass"
)
b
.
Property
<
string
>(
"NodeProcessClass"
)
.
HasColumnType
(
"TEXT"
)
.
HasColumnType
(
"TEXT"
)
.
UseCollation
(
"NOCASE"
);
.
UseCollation
(
"NOCASE"
);
...
@@ -1450,6 +1474,10 @@ namespace IoTSharp.Data.Sqlite.Migrations
...
@@ -1450,6 +1474,10 @@ namespace IoTSharp.Data.Sqlite.Migrations
b
.
Property
<
DateTime
>(
"TesterDateTime"
)
b
.
Property
<
DateTime
>(
"TesterDateTime"
)
.
HasColumnType
(
"TEXT"
);
.
HasColumnType
(
"TEXT"
);
b
.
Property
<
string
>(
"Top"
)
.
HasColumnType
(
"TEXT"
)
.
UseCollation
(
"NOCASE"
);
b
.
Property
<
string
>(
"bpmnid"
)
b
.
Property
<
string
>(
"bpmnid"
)
.
HasColumnType
(
"TEXT"
)
.
HasColumnType
(
"TEXT"
)
.
UseCollation
(
"NOCASE"
);
.
UseCollation
(
"NOCASE"
);
...
@@ -2052,7 +2080,7 @@ namespace IoTSharp.Data.Sqlite.Migrations
...
@@ -2052,7 +2080,7 @@ namespace IoTSharp.Data.Sqlite.Migrations
b
.
Property
<
bool
>(
"Deleted"
)
b
.
Property
<
bool
>(
"Deleted"
)
.
HasColumnType
(
"INTEGER"
);
.
HasColumnType
(
"INTEGER"
);
b
.
Property
<
string
>(
"E
M
ail"
)
b
.
Property
<
string
>(
"E
m
ail"
)
.
HasColumnType
(
"TEXT"
)
.
HasColumnType
(
"TEXT"
)
.
UseCollation
(
"NOCASE"
);
.
UseCollation
(
"NOCASE"
);
...
...
ClientAppVue
@
fd17300d
比较
125abf54
...
fd17300d
Subproject commit
125abf54d592240cd16697f515d8cbae199d47f5
Subproject commit
fd17300d6f7fbba2698c85eddde0f03d0153b34e
IoTSharp/Controllers/AccountController.cs
浏览文件 @
5a1bb822
...
@@ -356,11 +356,11 @@ namespace IoTSharp.Controllers
...
@@ -356,11 +356,11 @@ namespace IoTSharp.Controllers
public
async
Task
<
ApiResult
<
LoginResult
>>
Create
([
FromBody
]
InstallDto
model
)
public
async
Task
<
ApiResult
<
LoginResult
>>
Create
([
FromBody
]
InstallDto
model
)
{
{
var
tenant
=
_context
.
Tenant
.
FirstOrDefault
(
t
=>
t
.
E
M
ail
==
model
.
TenantEMail
&&
t
.
Deleted
==
false
);
var
tenant
=
_context
.
Tenant
.
FirstOrDefault
(
t
=>
t
.
E
m
ail
==
model
.
TenantEMail
&&
t
.
Deleted
==
false
);
var
customer
=
_context
.
Customer
.
FirstOrDefault
(
t
=>
t
.
Email
==
model
.
CustomerEMail
&&
t
.
Deleted
==
false
);
var
customer
=
_context
.
Customer
.
FirstOrDefault
(
t
=>
t
.
Email
==
model
.
CustomerEMail
&&
t
.
Deleted
==
false
);
if
(
tenant
==
null
&&
customer
==
null
)
if
(
tenant
==
null
&&
customer
==
null
)
{
{
tenant
=
new
Tenant
()
{
Id
=
Guid
.
NewGuid
(),
Name
=
model
.
TenantName
,
E
M
ail
=
model
.
TenantEMail
};
tenant
=
new
Tenant
()
{
Id
=
Guid
.
NewGuid
(),
Name
=
model
.
TenantName
,
E
m
ail
=
model
.
TenantEMail
};
customer
=
new
Customer
()
{
Id
=
Guid
.
NewGuid
(),
Name
=
model
.
CustomerName
,
Email
=
model
.
CustomerEMail
};
customer
=
new
Customer
()
{
Id
=
Guid
.
NewGuid
(),
Name
=
model
.
CustomerName
,
Email
=
model
.
CustomerEMail
};
customer
.
Tenant
=
tenant
;
customer
.
Tenant
=
tenant
;
tenant
.
Customers
=
new
List
<
Customer
>();
tenant
.
Customers
=
new
List
<
Customer
>();
...
@@ -664,7 +664,7 @@ namespace IoTSharp.Controllers
...
@@ -664,7 +664,7 @@ namespace IoTSharp.Controllers
switch
(
type
)
switch
(
type
)
{
{
case
1
:
case
1
:
return
new
ApiResult
<
bool
>(
ApiCode
.
Success
,
"OK"
,
_context
.
Tenant
.
Any
(
c
=>
c
.
E
M
ail
.
ToLower
()
==
email
.
ToLower
()
&&
c
.
Deleted
==
false
));
return
new
ApiResult
<
bool
>(
ApiCode
.
Success
,
"OK"
,
_context
.
Tenant
.
Any
(
c
=>
c
.
E
m
ail
.
ToLower
()
==
email
.
ToLower
()
&&
c
.
Deleted
==
false
));
case
2
:
case
2
:
return
new
ApiResult
<
bool
>(
ApiCode
.
Success
,
"OK"
,
_context
.
Customer
.
Any
(
c
=>
c
.
Email
.
ToLower
()
==
email
.
ToLower
()
&&
c
.
Deleted
==
false
));
return
new
ApiResult
<
bool
>(
ApiCode
.
Success
,
"OK"
,
_context
.
Customer
.
Any
(
c
=>
c
.
Email
.
ToLower
()
==
email
.
ToLower
()
&&
c
.
Deleted
==
false
));
case
3
:
case
3
:
...
...
IoTSharp/Controllers/CustomersController.cs
浏览文件 @
5a1bb822
...
@@ -51,7 +51,7 @@ namespace IoTSharp.Controllers
...
@@ -51,7 +51,7 @@ namespace IoTSharp.Controllers
/// 获取指定租户下的所有客户
/// 获取指定租户下的所有客户
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
[
HttpPost
(
"Tenant
/{tenantId}
"
)]
[
HttpPost
(
"Tenant"
)]
[
Authorize
(
Roles
=
nameof
(
UserRole
.
NormalUser
))]
[
Authorize
(
Roles
=
nameof
(
UserRole
.
NormalUser
))]
[
ProducesResponseType
(
StatusCodes
.
Status200OK
)]
[
ProducesResponseType
(
StatusCodes
.
Status200OK
)]
[
ProducesResponseType
(
typeof
(
ApiResult
),
StatusCodes
.
Status404NotFound
)]
[
ProducesResponseType
(
typeof
(
ApiResult
),
StatusCodes
.
Status404NotFound
)]
...
@@ -59,12 +59,9 @@ namespace IoTSharp.Controllers
...
@@ -59,12 +59,9 @@ namespace IoTSharp.Controllers
public
async
Task
<
ApiResult
<
PagedData
<
Customer
>>>
GetCustomers
([
FromBody
]
CustomerParam
m
)
public
async
Task
<
ApiResult
<
PagedData
<
Customer
>>>
GetCustomers
([
FromBody
]
CustomerParam
m
)
{
{
var
profile
=
this
.
GetUserProfile
();
var
profile
=
this
.
GetUserProfile
();
Expression
<
Func
<
Customer
,
bool
>>
condition
=
x
=>
x
.
Tenant
.
Id
==
profile
.
Tenant
&&
x
.
Deleted
==
false
;
var
querym
=
_context
.
Customer
.
Where
(
c
=>
c
.
Deleted
==
false
);
return
new
ApiResult
<
PagedData
<
Customer
>>(
ApiCode
.
Success
,
"OK"
,
new
PagedData
<
Customer
>
var
data
=
await
m
.
Query
(
querym
,
c
=>
c
.
Name
);
{
return
new
ApiResult
<
PagedData
<
Customer
>>(
ApiCode
.
Success
,
"OK"
,
data
);
total
=
await
_context
.
Customer
.
CountAsync
(
condition
),
rows
=
await
_context
.
Customer
.
OrderByDescending
(
c
=>
c
.
Id
).
Where
(
condition
).
Skip
((
m
.
Offset
)
*
m
.
Limit
).
Take
(
m
.
Limit
).
ToListAsync
()
});
}
}
/// <summary>
/// <summary>
...
...
IoTSharp/Controllers/InstallerController.cs
浏览文件 @
5a1bb822
...
@@ -119,7 +119,7 @@ namespace IoTSharp.Controllers
...
@@ -119,7 +119,7 @@ namespace IoTSharp.Controllers
if
(!
fx
.
Directory
.
Exists
)
fx
.
Directory
.
Create
();
if
(!
fx
.
Directory
.
Exists
)
fx
.
Directory
.
Create
();
var
ca
=
_uri
.
CreateCA
(
option
.
CACertificateFile
,
option
.
CAPrivateKeyFile
);
var
ca
=
_uri
.
CreateCA
(
option
.
CACertificateFile
,
option
.
CAPrivateKeyFile
);
ca
.
CreateBrokerTlsCert
(
_uri
.
Host
,
Dns
.
GetHostAddresses
(
_uri
.
Host
).
FirstOrDefault
(),
ca
.
CreateBrokerTlsCert
(
_uri
.
Host
,
Dns
.
GetHostAddresses
(
_uri
.
Host
).
FirstOrDefault
(),
option
.
CertificateFile
,
option
.
PrivateKeyFile
,
ten
.
E
M
ail
);
option
.
CertificateFile
,
option
.
PrivateKeyFile
,
ten
.
E
m
ail
);
ca
.
LoadCAToRoot
();
ca
.
LoadCAToRoot
();
result
=
new
ApiResult
(
ApiCode
.
Success
,
ca
.
Thumbprint
);
result
=
new
ApiResult
(
ApiCode
.
Success
,
ca
.
Thumbprint
);
}
}
...
...
IoTSharp/Extensions/ApplicationDBInitializer.cs
浏览文件 @
5a1bb822
...
@@ -491,11 +491,11 @@ namespace IoTSharp.Data
...
@@ -491,11 +491,11 @@ namespace IoTSharp.Data
public
async
Task
SeedUserAsync
(
InstallDto
model
)
public
async
Task
SeedUserAsync
(
InstallDto
model
)
{
{
var
tenant
=
_context
.
Tenant
.
FirstOrDefault
(
t
=>
t
.
E
M
ail
==
model
.
TenantEMail
&&
t
.
Deleted
==
false
);
var
tenant
=
_context
.
Tenant
.
FirstOrDefault
(
t
=>
t
.
E
m
ail
==
model
.
TenantEMail
&&
t
.
Deleted
==
false
);
var
customer
=
_context
.
Customer
.
FirstOrDefault
(
t
=>
t
.
Email
==
model
.
CustomerEMail
&&
t
.
Deleted
==
false
);
var
customer
=
_context
.
Customer
.
FirstOrDefault
(
t
=>
t
.
Email
==
model
.
CustomerEMail
&&
t
.
Deleted
==
false
);
if
(
tenant
==
null
&&
customer
==
null
)
if
(
tenant
==
null
&&
customer
==
null
)
{
{
tenant
=
new
Tenant
()
{
Id
=
Guid
.
NewGuid
(),
Name
=
model
.
TenantName
,
E
M
ail
=
model
.
TenantEMail
};
tenant
=
new
Tenant
()
{
Id
=
Guid
.
NewGuid
(),
Name
=
model
.
TenantName
,
E
m
ail
=
model
.
TenantEMail
};
customer
=
new
Customer
()
{
Id
=
Guid
.
NewGuid
(),
Name
=
model
.
CustomerName
,
Email
=
model
.
CustomerEMail
};
customer
=
new
Customer
()
{
Id
=
Guid
.
NewGuid
(),
Name
=
model
.
CustomerName
,
Email
=
model
.
CustomerEMail
};
customer
.
Tenant
=
tenant
;
customer
.
Tenant
=
tenant
;
tenant
.
Customers
=
new
List
<
Customer
>();
tenant
.
Customers
=
new
List
<
Customer
>();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录