update common and type sex
This commit is contained in:
parent
a0617293af
commit
55f4f6f5b6
@ -2013,8 +2013,8 @@ paths:
|
||||
format: int64
|
||||
description: ID of the quiz
|
||||
sex:
|
||||
type: boolean
|
||||
description: Gender of the person (false - female, true - male)
|
||||
type: integer
|
||||
description: Gender of the person 0 - female, 1 - male, 2 - not sex
|
||||
age:
|
||||
type: string
|
||||
description: Age of the person
|
||||
|
2
go.mod
2
go.mod
@ -6,7 +6,7 @@ require (
|
||||
gitea.pena/PenaSide/common v0.0.0-20250421103113-7e4b3ae9e1e0
|
||||
gitea.pena/PenaSide/hlog v0.0.0-20241125221102-a54c29c002a9
|
||||
gitea.pena/PenaSide/trashlog v0.0.0-20250224122049-ddb4d72e9d07
|
||||
gitea.pena/SQuiz/common v0.0.0-20250605135518-be6361f19f4c
|
||||
gitea.pena/SQuiz/common v0.0.0-20250606140534-fb272e7a1763
|
||||
github.com/caarlos0/env/v8 v8.0.0
|
||||
github.com/go-redis/redis/v8 v8.11.5
|
||||
github.com/gofiber/fiber/v2 v2.52.6
|
||||
|
2
go.sum
2
go.sum
@ -13,6 +13,8 @@ gitea.pena/SQuiz/common v0.0.0-20250531072420-f9ec7a513967 h1:pS6MAVGSp/84d8TpX8
|
||||
gitea.pena/SQuiz/common v0.0.0-20250531072420-f9ec7a513967/go.mod h1:zCrUwDh0APpztKk6NUqTZv+zhjVbWpGBJiJ5z9dAH0U=
|
||||
gitea.pena/SQuiz/common v0.0.0-20250605135518-be6361f19f4c h1:yCpGpEmugxNiIO0nNjhyDi8zmxjd1qHZqEXY5NmINrA=
|
||||
gitea.pena/SQuiz/common v0.0.0-20250605135518-be6361f19f4c/go.mod h1:zCrUwDh0APpztKk6NUqTZv+zhjVbWpGBJiJ5z9dAH0U=
|
||||
gitea.pena/SQuiz/common v0.0.0-20250606140534-fb272e7a1763 h1:v0X5uSedghzFgu+ohU8ZnNaFIUm35hsZuaMoTqhNPJQ=
|
||||
gitea.pena/SQuiz/common v0.0.0-20250606140534-fb272e7a1763/go.mod h1:zCrUwDh0APpztKk6NUqTZv+zhjVbWpGBJiJ5z9dAH0U=
|
||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||
github.com/ClickHouse/clickhouse-go v1.5.4 h1:cKjXeYLNWVJIx2J1K6H2CqyRmfwVJVY1OV1coaaFcI0=
|
||||
github.com/ClickHouse/clickhouse-go v1.5.4/go.mod h1:EaI/sW7Azgz9UATzd5ZdZHRUhHgv5+JMS9NSr2smCJI=
|
||||
|
@ -54,7 +54,7 @@ func (p *Producer) ToMailNotify(ctx context.Context, message Message) error {
|
||||
type MessageGigaChat struct {
|
||||
ID int64 `json:"id"`
|
||||
QuizID int64 `json:"quiz_id"`
|
||||
Sex bool `json:"sex"`
|
||||
Sex int32 `json:"sex"` // 0 - female, 1 - male, 2 - not sex
|
||||
Age string `json:"age"`
|
||||
}
|
||||
|
||||
|
@ -564,7 +564,7 @@ func (r *Quiz) CreateQuizAuditory(ctx *fiber.Ctx) error {
|
||||
}
|
||||
|
||||
var req struct {
|
||||
Sex bool `json:"sex"` // false - female, true - male
|
||||
Sex int32 `json:"sex"` // 0 - female, 1 - male, 2 - not sex
|
||||
Age string `json:"age"`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user