Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
349b9c68
authored
Jul 02, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
d5c7ccb5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
cmd/search_http_server.go
controller/mouser_controller.go
service/mouser_service.go
cmd/search_http_server.go
View file @
349b9c68
...
...
@@ -12,7 +12,7 @@ import (
func
main
()
{
var
path
string
flag
.
StringVar
(
&
path
,
"config
Path
"
,
"conf"
,
"配置文件"
)
flag
.
StringVar
(
&
path
,
"config"
,
"conf"
,
"配置文件"
)
flag
.
Parse
()
if
err
:=
boot
.
Boot
(
path
);
err
!=
nil
{
panic
(
err
)
...
...
controller/mouser_controller.go
View file @
349b9c68
...
...
@@ -19,7 +19,7 @@ func init() {
func
MouserGetData
(
c
*
service
.
MouserServiceImpl
)
gin_
.
Endpoint
{
return
func
(
context
*
gin
.
Context
,
request
interface
{})
(
response
interface
{},
err
error
)
{
rsp
:=
&
mouser
.
MouserResponse
{}
err
=
c
.
MouserGetData
(
context
,
request
.
(
*
mouser
.
MouserRequest
),
rsp
)
//
err = c.MouserGetData(context, request.(*mouser.MouserRequest), rsp)
return
rsp
,
err
}
}
...
...
service/mouser_service.go
View file @
349b9c68
...
...
@@ -70,7 +70,7 @@ func OutLink(goodsName string,flag string) map[string]*model.LyClearGoodsList {
}
return
productList
os
.
Exit
(
1
)
//
os.Exit(1)
//xml := strings.NewReader(resp)
//json, err := xj.Convert(xml)
...
...
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