Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
go_sku_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
8776b963
authored
Mar 09, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
加入新字段
parent
3edab69f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
service/service_attr.go
service/service_ly_common.go
service/service_attr.go
View file @
8776b963
...
@@ -34,6 +34,8 @@ func (ls *LyService) GetSpuAttr(spuId string) (attrsResult interface{}) {
...
@@ -34,6 +34,8 @@ func (ls *LyService) GetSpuAttr(spuId string) (attrsResult interface{}) {
data
[
"attr_name"
]
=
value
.
AttrName
data
[
"attr_name"
]
=
value
.
AttrName
//€符号全部替换为逗号
//€符号全部替换为逗号
data
[
"attr_value"
]
=
strings
.
ReplaceAll
(
value
.
AttrValue
,
"€"
,
","
)
data
[
"attr_value"
]
=
strings
.
ReplaceAll
(
value
.
AttrValue
,
"€"
,
","
)
data
[
"attr_value_id"
]
=
value
.
AttrValueId
data
[
"attr_id"
]
=
value
.
AttrId
data
[
"attr_unit"
]
=
value
.
AttrUnit
data
[
"attr_unit"
]
=
value
.
AttrUnit
attrsList
=
append
(
attrsList
,
data
)
attrsList
=
append
(
attrsList
,
data
)
attrsResult
=
attrsList
attrsResult
=
attrsList
...
...
service/service_ly_common.go
View file @
8776b963
...
@@ -119,9 +119,11 @@ type SpuAttr struct {
...
@@ -119,9 +119,11 @@ type SpuAttr struct {
}
}
type
AttrsExtend
struct
{
type
AttrsExtend
struct
{
AttrName
string
`bson:"attr_name" json:"attr_name"`
AttrId
int
`bson:"attr_id" json:"attr_id"`
AttrValue
string
`bson:"attr_value" json:"attr_value"`
AttrName
string
`bson:"attr_name" json:"attr_name"`
AttrUnit
string
`bson:"attr_unit" json:"attr_unit,omitempty"`
AttrValue
string
`bson:"attr_value" json:"attr_value"`
AttrValueId
int
`bson:"attr_value_id" json:"attr_value_id"`
AttrUnit
string
`bson:"attr_unit" json:"attr_unit,omitempty"`
}
}
// H获取供应链标准品牌
// H获取供应链标准品牌
...
...
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