by Robin at 20240731

This commit is contained in:
Leufolium 2024-07-31 17:04:08 +08:00
parent 4caefe3025
commit 73ada4aa6e
2 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ import (
type ApiListVO struct {
Id int64 `json:"id"` // 瑞文智商测试表id
UserId int64 `json:"user_id"` // 用户id
UserId string `json:"user_id"` // 用户id
Age int64 `json:"age"` // 年龄
TotalScore float64 `json:"total_score"` // 总得分
IQ int64 `json:"IQ"` // 智商值

View File

@ -2,7 +2,7 @@ package dbstruct
type RavenIQTest struct {
Id *int64 `json:"id" bson:"_id"` // 瑞文智商测试表id
UserId *int64 `json:"user_id" bson:"user_id"` // 用户id
UserId *string `json:"user_id" bson:"user_id"` // 用户id
Age *int64 `json:"age" bson:"age"` // 年龄
TotalScore *float64 `json:"total_score" bson:"total_score"` // 总得分
IQBlockId *int64 `json:"IQ_block_id" bson:"IQ_block_id"` // 智商值key
@ -33,9 +33,9 @@ func (p *RavenIQTest) GetId() int64 {
return *p.Id
}
func (p *RavenIQTest) GetUserId() int64 {
func (p *RavenIQTest) GetUserId() string {
if p == nil || p.UserId == nil {
return -1
return ""
}
return *p.UserId
}