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"` StartTime time.Time `json:"start_time"`
EndTime time.Time `json:"end_time"` EndTime time.Time `json:"end_time"`
Thumbnail string `json:"thumbnail"` Thumbnail string `json:"thumbnail"`
RequireKyc bool `json:"require_kyc"`
JoinCount int64 `json:"join_count"` JoinCount int64 `json:"join_count"`
CheckinCount int64 `json:"checkin_count"` CheckinCount int64 `json:"checkin_count"`
} }

View File

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

View File

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

View File

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

View File

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