Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-user
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
chenweijian
hilo-user
Commits
dc465373
Commit
dc465373
authored
Jun 17, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
70fb5d05
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
25 deletions
+30
-25
headwear.go
cv/headwear_cv/headwear.go
+24
-20
headwear.go
domain/model/res_m/headwear.go
+6
-5
No files found.
cv/headwear_cv/headwear.go
View file @
dc465373
...
@@ -18,6 +18,7 @@ type CvHeadwear struct {
...
@@ -18,6 +18,7 @@ type CvHeadwear struct {
Using
bool
`json:"using"`
Using
bool
`json:"using"`
PicUrl
mysql
.
Str
`json:"picUrl"`
PicUrl
mysql
.
Str
`json:"picUrl"`
EffectUrl
mysql
.
Str
`json:"effectUrl"`
EffectUrl
mysql
.
Str
`json:"effectUrl"`
ReverseEffectUrl
mysql
.
Str
`json:"reverseEffectUrl"`
TimeLeft
int64
`json:"timeLeft"`
// 离到期还有多少秒(过期则是负数)
TimeLeft
int64
`json:"timeLeft"`
// 离到期还有多少秒(过期则是负数)
HeadwearIcon
string
`json:"headwearIcon"`
HeadwearIcon
string
`json:"headwearIcon"`
}
}
...
@@ -64,6 +65,7 @@ func GetHeadwearList(db *gorm.DB, userId uint64) ([]CvHeadwear, error) {
...
@@ -64,6 +65,7 @@ func GetHeadwearList(db *gorm.DB, userId uint64) ([]CvHeadwear, error) {
Id
:
i
.
HeadwearId
,
Id
:
i
.
HeadwearId
,
PicUrl
:
resHwMap
[
i
.
HeadwearId
]
.
PicUrl
,
PicUrl
:
resHwMap
[
i
.
HeadwearId
]
.
PicUrl
,
EffectUrl
:
resHwMap
[
i
.
HeadwearId
]
.
EffectUrl
,
EffectUrl
:
resHwMap
[
i
.
HeadwearId
]
.
EffectUrl
,
ReverseEffectUrl
:
resHwMap
[
i
.
HeadwearId
]
.
ReverseEffectUrl
,
Using
:
isUsing
,
Using
:
isUsing
,
TimeLeft
:
i
.
EndTime
.
Unix
()
-
now
.
Unix
(),
TimeLeft
:
i
.
EndTime
.
Unix
()
-
now
.
Unix
(),
})
})
...
@@ -103,6 +105,7 @@ func GetCvHeadwear(userId uint64) (*CvHeadwear, error) {
...
@@ -103,6 +105,7 @@ func GetCvHeadwear(userId uint64) (*CvHeadwear, error) {
Id
:
userHeadwear
.
HeadwearId
,
Id
:
userHeadwear
.
HeadwearId
,
PicUrl
:
resHeadwear
.
PicUrl
,
PicUrl
:
resHeadwear
.
PicUrl
,
EffectUrl
:
resHeadwear
.
EffectUrl
,
EffectUrl
:
resHeadwear
.
EffectUrl
,
ReverseEffectUrl
:
resHeadwear
.
ReverseEffectUrl
,
Using
:
userHeadwear
.
Using
==
headwear_e
.
YesUsing
,
Using
:
userHeadwear
.
Using
==
headwear_e
.
YesUsing
,
},
nil
},
nil
}
}
...
@@ -162,6 +165,7 @@ func BatchGetCvHeadwears(userIds []uint64) (map[uint64]CvHeadwear, error) {
...
@@ -162,6 +165,7 @@ func BatchGetCvHeadwears(userIds []uint64) (map[uint64]CvHeadwear, error) {
Id
:
headwear
.
ID
,
Id
:
headwear
.
ID
,
PicUrl
:
headwear
.
PicUrl
,
PicUrl
:
headwear
.
PicUrl
,
EffectUrl
:
headwear
.
EffectUrl
,
EffectUrl
:
headwear
.
EffectUrl
,
ReverseEffectUrl
:
headwear
.
ReverseEffectUrl
,
Using
:
r
.
Using
==
headwear_e
.
YesUsing
,
Using
:
r
.
Using
==
headwear_e
.
YesUsing
,
HeadwearIcon
:
response
[
r
.
UserId
],
HeadwearIcon
:
response
[
r
.
UserId
],
}
}
...
...
domain/model/res_m/headwear.go
View file @
dc465373
...
@@ -13,6 +13,7 @@ type ResHeadwear struct {
...
@@ -13,6 +13,7 @@ type ResHeadwear struct {
Name
mysql
.
Str
Name
mysql
.
Str
PicUrl
mysql
.
Str
PicUrl
mysql
.
Str
EffectUrl
mysql
.
Str
EffectUrl
mysql
.
Str
ReverseEffectUrl
mysql
.
Str
}
}
//矛盾,项目负责人(产品不接受 商品 同上架分开两个数据结构的模式),又在页面上要求头饰同价格在一起展示,修改。
//矛盾,项目负责人(产品不接受 商品 同上架分开两个数据结构的模式),又在页面上要求头饰同价格在一起展示,修改。
...
...
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