Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
DataCenter_Core2.1_20190520
Commits
1ccd3043
Commit
1ccd3043
authored
Jul 15, 2021
by
zhoujinhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
api跨域
parent
797fa862
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
1 deletion
+12
-1
CommonApiResponseDto.cs
Bailun.DC.Models/Common/CommonApiResponseDto.cs
+1
-1
FinanceService.cs
Bailun.DC.Services/WebApiService/FinanceService.cs
+4
-0
FinanceController.cs
Bailun.DC.WebApi/Controllers/FinanceController.cs
+5
-0
Startup.cs
Bailun.DC.WebApi/Startup.cs
+2
-0
No files found.
Bailun.DC.Models/Common/CommonApiResponseDto.cs
View file @
1ccd3043
...
@@ -28,6 +28,6 @@ namespace Bailun.DC.Models.Common
...
@@ -28,6 +28,6 @@ namespace Bailun.DC.Models.Common
/// <summary>
/// <summary>
/// HTTP状态码
/// HTTP状态码
/// </summary>
/// </summary>
public
int
Code
{
get
;
set
;
}
public
int
Code
=>
IsSuccess
?
200
:
0
;
}
}
}
}
Bailun.DC.Services/WebApiService/FinanceService.cs
View file @
1ccd3043
...
@@ -54,5 +54,9 @@ and s2.company_type = @CorporateEntity";
...
@@ -54,5 +54,9 @@ and s2.company_type = @CorporateEntity";
return
obj
;
return
obj
;
};
};
}
}
#
region
付现流水明细
#
endregion
}
}
}
}
Bailun.DC.WebApi/Controllers/FinanceController.cs
View file @
1ccd3043
...
@@ -42,5 +42,10 @@ namespace Bailun.DC.WebApi.Controllers
...
@@ -42,5 +42,10 @@ namespace Bailun.DC.WebApi.Controllers
[
HttpPost
(
"getCashFlowStatement"
)]
[
HttpPost
(
"getCashFlowStatement"
)]
public
async
Task
<
CommonApiResponseDto
<
List
<
dc_base_finance_fee
>>>
GetCashFlowStatement
(
GetCashFlowStatementInput
input
)
public
async
Task
<
CommonApiResponseDto
<
List
<
dc_base_finance_fee
>>>
GetCashFlowStatement
(
GetCashFlowStatementInput
input
)
=>
await
new
FinanceService
().
GetCashFlowStatement
(
input
);
=>
await
new
FinanceService
().
GetCashFlowStatement
(
input
);
#
region
付现流水明细
#
endregion
}
}
}
}
Bailun.DC.WebApi/Startup.cs
View file @
1ccd3043
...
@@ -34,6 +34,7 @@ namespace Bailun.DC.WebApi
...
@@ -34,6 +34,7 @@ namespace Bailun.DC.WebApi
{
{
ConfigManagerConf
.
SetConfiguration
(
Configuration
);
ConfigManagerConf
.
SetConfiguration
(
Configuration
);
ConfigHelper
.
SetAppSetting
(
Configuration
);
ConfigHelper
.
SetAppSetting
(
Configuration
);
services
.
AddCors
(
options
=>
options
.
AddPolicy
(
"cors"
,
p
=>
p
.
AllowAnyOrigin
().
AllowAnyHeader
().
AllowAnyMethod
().
AllowCredentials
()));
services
.
AddSwaggerGen
(
c
=>
services
.
AddSwaggerGen
(
c
=>
{
{
c
.
SwaggerDoc
(
"v1"
,
new
OpenApiInfo
{
Title
=
"Bailun.DC.WebApi"
,
Version
=
"v1"
});
c
.
SwaggerDoc
(
"v1"
,
new
OpenApiInfo
{
Title
=
"Bailun.DC.WebApi"
,
Version
=
"v1"
});
...
@@ -72,6 +73,7 @@ namespace Bailun.DC.WebApi
...
@@ -72,6 +73,7 @@ namespace Bailun.DC.WebApi
{
{
app
.
UseDeveloperExceptionPage
();
app
.
UseDeveloperExceptionPage
();
}
}
app
.
UseCors
(
"cors"
);
app
.
UseSwagger
();
app
.
UseSwagger
();
app
.
UseSwaggerUI
(
c
=>
app
.
UseSwaggerUI
(
c
=>
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment