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
0e0fba37
Commit
0e0fba37
authored
Jul 07, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature/3.10
parent
40ccfdb2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
bag.go
cv/user_cv/bag.go
+1
-0
gift.go
domain/model/res_m/gift.go
+1
-0
bag.go
route/user_r/bag.go
+11
-10
No files found.
cv/user_cv/bag.go
View file @
0e0fba37
...
...
@@ -16,6 +16,7 @@ type UserBag struct {
Count
mysql
.
Num
`json:"count"`
// 拥有数量
RemainDays
int
`json:"remainDays"`
// 有效天数
TextStyleList
[]
*
TextStyle
`json:"textStyleList"`
// 文本样式
HasGiftText
bool
`json:"hasGiftText"`
// 是否有礼物文字
}
type
TextStyle
struct
{
...
...
domain/model/res_m/gift.go
View file @
0e0fba37
...
...
@@ -22,6 +22,7 @@ type ResGift struct {
Together
bool
Status
mysql
.
UserYesNo
GiftType
mysql
.
Type
HasGiftText
bool
}
// 获取所有的礼物
...
...
route/user_r/bag.go
View file @
0e0fba37
...
...
@@ -56,6 +56,7 @@ func UserBag(c *gin.Context) (*mycontext.MyContext, error) {
SvgaUrl
:
gift
.
SvagUrl
,
Count
:
bagGift
.
Count
,
RemainDays
:
int
(
bagGift
.
EndTime
.
Sub
(
time
.
Now
())
.
Hours
()
/
24
),
HasGiftText
:
gift
.
HasGiftText
,
}
if
gift
.
ID
==
cp_e
.
CpConfessionGiftId
{
// 如果是cp告白礼物
info
.
TextStyleList
=
make
([]
*
user_cv
.
TextStyle
,
0
,
2
)
...
...
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