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
34a104ed
authored
Jul 22, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
0e8e50ed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
controller/mouser_controller.go
model/ly.go
service/ly/common.go
controller/mouser_controller.go
View file @
34a104ed
...
...
@@ -14,7 +14,7 @@ func GetMouserData(c *gin.Context) {
//调外链拿数据
apiData
:=
ly
.
OutLinkMouser
(
&
goodsName
,
"1"
)
//供应商详情
supplierInfo
:=
model
.
SUPPLIER_REDIS_INFO
_
{
supplierInfo
:=
model
.
SUPPLIER_REDIS_INFO
{
SupplierId
:
14
,
SupplierNickname
:
"mouser"
,
}
...
...
model/ly.go
View file @
34a104ed
...
...
@@ -60,7 +60,7 @@ Array
)
)
*/
type
SUPPLIER_REDIS_INFO
_
struct
{
type
SUPPLIER_REDIS_INFO
struct
{
SupplierId
int64
`json:"supplier_id"`
//供应商id
SupplierNickname
string
`json:"supplier_nickname"`
//供应商名称
AdText
string
`json:"ad_text"`
//供应商描述
...
...
service/ly/common.go
View file @
34a104ed
...
...
@@ -58,7 +58,7 @@ func (t *CommonLyService) LyServerRun(){
@param goods_list 请求联营格式化后的数据
@param supplier_info 供应商商品详情
*/
func
(
t
*
CommonLyService
)
GetSkuByGoodsSn
(
goodsList
map
[
string
]
*
model
.
LyClearGoodsList
,
supplierInfo
*
model
.
SUPPLIER_REDIS_INFO
_
)
bool
{
func
(
t
*
CommonLyService
)
GetSkuByGoodsSn
(
goodsList
map
[
string
]
*
model
.
LyClearGoodsList
,
supplierInfo
*
model
.
SUPPLIER_REDIS_INFO
)
bool
{
t
.
LyServerRun
();
//初始化变量
redisWrite
:=
gredis
.
Conn
(
"search_w"
)
...
...
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