Add RequireKyc for eventinfo
All checks were successful
Client CMS Check Build (NixCN CMS) TeamCity build finished
Backend Check Build (NixCN CMS) TeamCity build finished

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-02-05 16:47:25 +08:00
parent 42fdceaf88
commit a7a6b7aa4e
5 changed files with 10 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ type EventIndexDoc struct {
StartTime time.Time `json:"start_time"`
EndTime time.Time `json:"end_time"`
Thumbnail string `json:"thumbnail"`
RequireKyc bool `json:"require_kyc"`
JoinCount int64 `json:"join_count"`
CheckinCount int64 `json:"checkin_count"`
}

View File

@@ -2014,6 +2014,9 @@ const docTemplate = `{
"name": {
"type": "string"
},
"require_kyc": {
"type": "boolean"
},
"start_time": {
"type": "string"
},

View File

@@ -2012,6 +2012,9 @@
"name": {
"type": "string"
},
"require_kyc": {
"type": "boolean"
},
"start_time": {
"type": "string"
},

View File

@@ -14,6 +14,8 @@ definitions:
type: integer
name:
type: string
require_kyc:
type: boolean
start_time:
type: string
thumbnail:

View File

@@ -106,6 +106,7 @@ func (self *EventServiceImpl) GetEventInfo(payload *EventInfoPayload) (result *E
StartTime: event.StartTime,
EndTime: event.EndTime,
Thumbnail: event.Thumbnail,
RequireKyc: event.EnableKYC,
JoinCount: joinCount,
CheckinCount: checkinCount,
},