Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doc-service
Project
Project
Details
Activity
Releases
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
eifel邓鹏飞
doc-service
Commits
b253b225
Commit
b253b225
authored
Sep 27, 2024
by
Bess严根旺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
06a74034
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
convert_service.go
domain/service/convert_service.go
+9
-4
go.mod
go.mod
+1
-1
go.sum
go.sum
+4
-0
No files found.
domain/service/convert_service.go
View file @
b253b225
...
...
@@ -100,6 +100,11 @@ func (doc *DocServiceService) DoConversion(c context.Context, req *pb.DoConversi
}
}
var
isPrivate
bool
=
true
if
req
.
IsPrivate
!=
nil
{
isPrivate
=
*
req
.
IsPrivate
}
jsonCallBackData
,
_
:=
json
.
Marshal
(
CallBackData
)
request
:=
&
service
.
DoConversionRequest
{
ProjectName
:
req
.
ProjectName
,
...
...
@@ -107,7 +112,7 @@ func (doc *DocServiceService) DoConversion(c context.Context, req *pb.DoConversi
SourceURI
:
req
.
SourceUrl
,
TargetType
:
req
.
TargetType
,
TargetURI
:
req
.
TargetUrl
,
IsPrivate
:
req
.
I
sPrivate
,
IsPrivate
:
i
sPrivate
,
CallbackData
:
string
(
jsonCallBackData
),
CallbackUrl
:
req
.
CallbackUrl
,
}
...
...
@@ -122,9 +127,9 @@ func (doc *DocServiceService) DoConversion(c context.Context, req *pb.DoConversi
}
//入库 默认公有有库
isPri
:=
0
if
req
.
I
sPrivate
{
isPri
=
1
isPri
:=
1
if
!
i
sPrivate
{
isPri
=
0
}
save
,
errsInfo
:=
db
.
GetServerSiteMicrosDB
()
.
DocServerProject
.
Create
()
.
SetProjectName
(
req
.
ProjectName
)
.
...
...
go.mod
View file @
b253b225
...
...
@@ -14,7 +14,7 @@ require (
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1
github.com/nacos-group/nacos-sdk-go/v2 v2.2.4
gitlab.galaxy-immi.com/Backend-group/go-com v1.4.2-test-rc12
gitlab.galaxy-immi.com/Backend-group/proto v1.10.11-0.2024092
6111707-5e7e3c13ec0a
gitlab.galaxy-immi.com/Backend-group/proto v1.10.11-0.2024092
7070748-accd4244df78
go.uber.org/zap v1.21.0
google.golang.org/genproto/googleapis/api v0.0.0-20240701130421-f6361c86f094
google.golang.org/grpc v1.64.0
...
...
go.sum
View file @
b253b225
...
...
@@ -554,6 +554,10 @@ gitlab.galaxy-immi.com/Backend-group/proto v1.6.31-test-rc26 h1:sExNhVkZzKAOZI3l
gitlab.galaxy-immi.com/Backend-group/proto v1.6.31-test-rc26/go.mod h1:vXZLtbzFvAjc86DXqO8LdYjBkMGc5fVh5XGe2bi4FqE=
gitlab.galaxy-immi.com/Backend-group/proto v1.10.11-0.20240926111707-5e7e3c13ec0a h1:u08VQuSLDKUR2hbaYgKJN2nuzmMLl32+6YYjyKKUEX0=
gitlab.galaxy-immi.com/Backend-group/proto v1.10.11-0.20240926111707-5e7e3c13ec0a/go.mod h1:vXZLtbzFvAjc86DXqO8LdYjBkMGc5fVh5XGe2bi4FqE=
gitlab.galaxy-immi.com/Backend-group/proto v1.10.11-0.20240927013714-648346c747da h1:DBonkQsjilb9a3DtDZBgj6Za0YI0m5ksZ+bWjYrvfEc=
gitlab.galaxy-immi.com/Backend-group/proto v1.10.11-0.20240927013714-648346c747da/go.mod h1:vXZLtbzFvAjc86DXqO8LdYjBkMGc5fVh5XGe2bi4FqE=
gitlab.galaxy-immi.com/Backend-group/proto v1.10.11-0.20240927070748-accd4244df78 h1:qNmCiGh7+d5uOhwOeuy7R9alnESho8dCUL17Sx5YoiQ=
gitlab.galaxy-immi.com/Backend-group/proto v1.10.11-0.20240927070748-accd4244df78/go.mod h1:vXZLtbzFvAjc86DXqO8LdYjBkMGc5fVh5XGe2bi4FqE=
go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg=
go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
...
...
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