Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
WeiPanAPI
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
Discuz
WeiPanAPI
Commits
3d04a6da
Commit
3d04a6da
authored
May 12, 2021
by
xiongyuwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
36904722
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
8 deletions
+44
-8
GetFileListResponse.cs
...Application/WeiPan/Dto/ResponseDto/GetFileListResponse.cs
+1
-0
IWeiPanService.cs
src/Bailun.Discuz.Application/WeiPan/IWeiPanService.cs
+2
-2
WeiPanService.cs
src/Bailun.Discuz.Application/WeiPan/WeiPanService.cs
+0
-0
WeipanUserFiles.cs
src/Bailun.Discuz.Domain/WeiPan/WeipanUserFiles.cs
+1
-0
WeiPanController.cs
src/Bailun.Discuz.Service/Controllers/WeiPanController.cs
+4
-4
appsettings.Production.json
...lun.Discuz.ConsoleApp.Publish/appsettings.Production.json
+28
-0
appsettings.json
...console/Bailun.Discuz.ConsoleApp.Publish/appsettings.json
+8
-2
No files found.
src/Bailun.Discuz.Application/WeiPan/Dto/ResponseDto/GetFileListResponse.cs
View file @
3d04a6da
...
...
@@ -97,5 +97,6 @@ namespace Bailun.Discuz.Application.WeiPan.Dto.ResponseDto
///
/// </summary>
public
File_list
file_list
{
get
;
set
;
}
public
string
companyName
{
get
;
set
;
}
}
}
src/Bailun.Discuz.Application/WeiPan/IWeiPanService.cs
View file @
3d04a6da
...
...
@@ -30,7 +30,7 @@ namespace Bailun.Discuz.Application.WeiPan
///// 获取首层文件列表
///// </summary>
///// <returns></returns>
Task
<
GetFileListResponse
>
GetFirstFileList
(
string
userId
,
bool
isGetRedis
=
tru
e
);
Task
<
GetFileListResponse
>
GetFirstFileList
(
string
userId
,
string
companyName
,
bool
isGetRedis
=
true
,
bool
isDelCaching
=
fals
e
);
///// <summary>
///// 获取下载文件链接地址
...
...
@@ -41,7 +41,7 @@ namespace Bailun.Discuz.Application.WeiPan
/// <summary>
/// 递归获取所有首页下的所有文件列表数据
/// </summary>
Task
<
List
<
FileListTreeDto
>>
GetFileListTree
(
string
userId
,
string
fildId
,
bool
isGetRedis
=
tru
e
);
Task
<
List
<
FileListTreeDto
>>
GetFileListTree
(
string
userId
,
string
companyName
,
string
fildId
,
bool
isGetRedis
=
true
,
bool
isDelCaching
=
fals
e
);
Task
<
AttachmentsDto
>
GetAttchmattachmentByFileId
(
string
fileId
);
...
...
src/Bailun.Discuz.Application/WeiPan/WeiPanService.cs
View file @
3d04a6da
This diff is collapsed.
Click to expand it.
src/Bailun.Discuz.Domain/WeiPan/WeipanUserFiles.cs
View file @
3d04a6da
...
...
@@ -15,5 +15,6 @@ namespace Bailun.Discuz.Domain.WeiPan
[
Column
(
"father_file_id"
)]
public
string
FatherFileId
{
get
;
set
;
}
[
Column
(
"file_id"
)]
public
string
File_Id
{
get
;
set
;
}
[
Column
(
"company_name"
)]
public
string
Company_Name
{
get
;
set
;
}
}
}
src/Bailun.Discuz.Service/Controllers/WeiPanController.cs
View file @
3d04a6da
...
...
@@ -45,9 +45,9 @@ namespace Bailun.Discuz.Service.Controllers
///// </summary>
///// <returns></returns>
[
HttpGet
(
"GetFirstFileList"
)]
public
async
Task
<
GetFileListResponse
>
GetFirstFileList
(
string
userId
)
public
async
Task
<
GetFileListResponse
>
GetFirstFileList
(
string
userId
,
string
companyName
)
{
return
await
_iweiPanService
.
GetFirstFileList
(
userId
);
return
await
_iweiPanService
.
GetFirstFileList
(
userId
,
companyName
,
true
);
}
///// <summary>
...
...
@@ -63,9 +63,9 @@ namespace Bailun.Discuz.Service.Controllers
/// 递归获取所有首页下的所有文件列表数据
/// </summary>
[
HttpGet
(
"GetFileListTree"
)]
public
async
Task
<
List
<
FileListTreeDto
>>
GetFileListTree
(
string
userId
,
string
fildId
)
public
async
Task
<
List
<
FileListTreeDto
>>
GetFileListTree
(
string
userId
,
string
fildId
,
string
companyName
)
{
return
await
_iweiPanService
.
GetFileListTree
(
userId
,
fildId
);
return
await
_iweiPanService
.
GetFileListTree
(
userId
,
companyName
,
fildId
);
}
/// <summary>
...
...
src/console/Bailun.Discuz.ConsoleApp.Publish/appsettings.Production.json
View file @
3d04a6da
...
...
@@ -17,6 +17,12 @@
"WeiPanSpaceId"
:
"s.ww833808f6b8dc0745.610693393XlV"
,
"WeiPanSpaceFileId"
:
"s.ww833808f6b8dc0745.610693393XlV_d.6106935069y7b"
},
"FourKQYWeChat"
:
{
"AppId"
:
"ww4e7dd5ae312eb101"
,
"Secret"
:
"tbiUloEtNcsbSnKRBpVjeWjlDTOR7pPAdOtmn3kfQMM "
,
"WeiPanSpaceId"
:
"s.ww4e7dd5ae312eb101.614679173dzT"
,
"WeiPanSpaceFileId"
:
"s.ww4e7dd5ae312eb101.614679173dzT_d.614679239rBH4"
},
"ApiServerUrl"
:
{
"ProductUrl"
:
"http://pro.bailuntec.com"
,
"ProfitApiAddress"
:
"http://profit.bailuntec.com"
,
...
...
@@ -43,5 +49,27 @@
"Host"
:
"10.0.0.2"
,
"UserName"
:
"bailun"
,
"Password"
:
"bailun2019"
},
"QiNiu"
:
{
"AccessKey"
:
"QSvtvN4Ons1CiNzaMGqx8XmDaiM1L0ZqSwJ2YoTn"
,
"SecretKey"
:
"yagRd-cBOVhkRGGT-o_reMqNVjI8_k7YwoTXkhrm"
,
"CdnUrl"
:
"http://img.blsct.com"
,
"ProxyUrl"
:
"http://172.106.221.14:8513"
,
"ProductsCdnUrl"
:
"https://img.blsct.com"
,
"Bucket"
:
"bailun-publish-img"
,
"ImgCDNs"
:
[
"http://img.blsct.com"
,
"http://oyd60abh0.bkt.clouddn.com"
,
"http://elite99.blsct.com"
,
"http://bailun.blsct.com"
,
"http://gelnailpolish.blsct.com"
,
"http://nails.blsct.com"
,
"http://huilin.blsct.com"
,
"http://beauty.blsct.com"
,
"http://gelnails.blsct.com"
,
"http://digi.blsct.com"
,
"http://kiunobeauty.blsct.com"
,
"http://eumengman.blsct.com"
]
}
}
src/console/Bailun.Discuz.ConsoleApp.Publish/appsettings.json
View file @
3d04a6da
...
...
@@ -2,6 +2,12 @@
"ConnectionStrings"
:
{
"Discuz"
:
"Server=106.55.44.113;port=3306;database=discuz;uid=admin;password=e066d4d1;Convert Zero Datetime=True;Allow User Variables=True;pooling=true"
},
//
"redis"
:
{
//
"HostName"
:
"127.0.0.1"
,
//
"Port"
:
"6379"
,
//
"Password"
:
""
,
//
"Defaultdatabase"
:
1
//
},
"redis"
:
{
"HostName"
:
"10.0.8.8"
,
"Port"
:
"6379"
,
...
...
@@ -20,8 +26,8 @@
"FourKQYWeChat"
:
{
"AppId"
:
"ww4e7dd5ae312eb101"
,
"Secret"
:
"tbiUloEtNcsbSnKRBpVjeWjlDTOR7pPAdOtmn3kfQMM "
,
"WeiPanSpaceId"
:
"s.ww4e7dd5ae312eb101.614
410738dfa
"
,
"WeiPanSpaceFileId"
:
"s.ww4e7dd5ae312eb101.614
410738dfa_d.614411110Jd02
"
"WeiPanSpaceId"
:
"s.ww4e7dd5ae312eb101.614
679173dzT
"
,
"WeiPanSpaceFileId"
:
"s.ww4e7dd5ae312eb101.614
679173dzT_d.614679239rBH4
"
},
"ApiServerUrl"
:
{
"ProductUrl"
:
"http://pro.bailuntec.com"
,
...
...
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