From a7a6b7aa4e7951120b5abf02359dbdcae3f272ef Mon Sep 17 00:00:00 2001 From: Asai Neko Date: Thu, 5 Feb 2026 16:47:25 +0800 Subject: [PATCH] Add RequireKyc for eventinfo Signed-off-by: Asai Neko --- data/event.go | 1 + docs/docs.go | 3 +++ docs/swagger.json | 3 +++ docs/swagger.yaml | 2 ++ service/service_event/get_event_info.go | 1 + 5 files changed, 10 insertions(+) diff --git a/data/event.go b/data/event.go index bb25f82..4264def 100644 --- a/data/event.go +++ b/data/event.go @@ -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"` } diff --git a/docs/docs.go b/docs/docs.go index 3c5affb..732587f 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -2014,6 +2014,9 @@ const docTemplate = `{ "name": { "type": "string" }, + "require_kyc": { + "type": "boolean" + }, "start_time": { "type": "string" }, diff --git a/docs/swagger.json b/docs/swagger.json index e9a9496..b0382a0 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -2012,6 +2012,9 @@ "name": { "type": "string" }, + "require_kyc": { + "type": "boolean" + }, "start_time": { "type": "string" }, diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 5404d74..8e0b182 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -14,6 +14,8 @@ definitions: type: integer name: type: string + require_kyc: + type: boolean start_time: type: string thumbnail: diff --git a/service/service_event/get_event_info.go b/service/service_event/get_event_info.go index aa8dc5f..fa24d69 100644 --- a/service/service_event/get_event_info.go +++ b/service/service_event/get_event_info.go @@ -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, },