Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
cdy816
Mars
提交
c5a6e60e
Mars
项目概览
cdy816
/
Mars
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Mars
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c5a6e60e
编写于
9月 14, 2020
作者:
cdy816
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
DBDevelopClientWebApi 接口功能完善
上级
10d012a7
变更
6
展开全部
显示空白变更内容
内联
并排
Showing
6 changed file
with
953 addition
and
348 deletion
+953
-348
Develop/DBDevelopClientWebApi/DBDevelopClientWebApi.csproj
Develop/DBDevelopClientWebApi/DBDevelopClientWebApi.csproj
+1
-0
Develop/DBDevelopClientWebApi/DevelopServiceHelper.cs
Develop/DBDevelopClientWebApi/DevelopServiceHelper.cs
+926
-344
Develop/DBDevelopClientWebApi/RequestBase.cs
Develop/DBDevelopClientWebApi/RequestBase.cs
+12
-0
Develop/DBDevelopService/Controllers/DevelopServerController.cs
...p/DBDevelopService/Controllers/DevelopServerController.cs
+3
-3
Develop/DBDevelopService/Controllers/RequestBase.cs
Develop/DBDevelopService/Controllers/RequestBase.cs
+9
-0
Example/Develop/DevelopWebApiDemo/MainWindow.xaml.cs
Example/Develop/DevelopWebApiDemo/MainWindow.xaml.cs
+2
-1
未找到文件。
Develop/DBDevelopClientWebApi/DBDevelopClientWebApi.csproj
浏览文件 @
c5a6e60e
...
...
@@ -8,6 +8,7 @@
<PackageProjectUrl>https://github.com/cdy816/mars</PackageProjectUrl>
<Description>DBDevelop Server WebApi SDK</Description>
<Copyright />
<Version>1.0.1</Version>
</PropertyGroup>
<ItemGroup>
...
...
Develop/DBDevelopClientWebApi/DevelopServiceHelper.cs
浏览文件 @
c5a6e60e
此差异已折叠。
点击以展开。
Develop/DBDevelopClientWebApi/RequestBase.cs
浏览文件 @
c5a6e60e
...
...
@@ -236,6 +236,18 @@ namespace DBDevelopClientWebApi
public
string
ErroMsg
{
get
;
set
;
}
}
/// <summary>
///
/// </summary>
/// <typeparam name="T"></typeparam>
public
class
GetTagsResponse
<
T
>
:
ResultResponse
<
T
>
{
/// <summary>
///
/// </summary>
public
int
TotalPages
{
get
;
set
;
}
}
}
Develop/DBDevelopService/Controllers/DevelopServerController.cs
浏览文件 @
c5a6e60e
...
...
@@ -450,7 +450,7 @@ namespace DBDevelopService.Controllers
int
from
=
request
.
Index
*
PageCount
;
var
res
=
db
.
RealDatabase
.
ListAllTags
().
Where
(
e
=>
e
.
Group
==
request
.
GroupName
);
if
(
request
.
Filters
!=
null
&&
request
.
Filters
.
Count
>
0
)
if
(
request
.
Filters
!=
null
&&
request
.
Filters
.
Count
>
0
)
{
res
=
FilterTags
(
db
,
res
,
request
.
Filters
);
}
...
...
@@ -478,7 +478,7 @@ namespace DBDevelopService.Controllers
}
}
}
return
new
ResultResponse
()
{
Result
=
r
e
};
return
new
GetTagsByGroupResponse
()
{
Result
=
re
,
TotalPages
=
totalpag
e
};
}
...
...
Develop/DBDevelopService/Controllers/RequestBase.cs
浏览文件 @
c5a6e60e
...
...
@@ -172,6 +172,15 @@ namespace DBDevelopService.Controllers
public
string
ErroMsg
{
get
;
set
;
}
}
/// <summary>
///
/// </summary>
public
class
GetTagsByGroupResponse
:
ResultResponse
{
public
int
TotalPages
{
get
;
set
;
}
}
}
Example/Develop/DevelopWebApiDemo/MainWindow.xaml.cs
浏览文件 @
c5a6e60e
...
...
@@ -37,7 +37,8 @@ namespace DevelopWebApiDemo
private
void
getTag_Click
(
object
sender
,
RoutedEventArgs
e
)
{
var
tags
=
mHelper
.
GetTagByGroup
(
mCurrentDatabase
,
mTagGroup
,
0
);
int
count
=
0
;
var
tags
=
mHelper
.
GetTagByGroup
(
mCurrentDatabase
,
mTagGroup
,
0
,
out
count
);
if
(
tags
!=
null
)
{
taglist
.
ItemsSource
=
tags
.
Select
(
e
=>
e
.
Item1
.
Name
).
ToList
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录