@@ -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"`
|
||||
}
|
||||
|
||||
@@ -2014,6 +2014,9 @@ const docTemplate = `{
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"require_kyc": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"start_time": {
|
||||
"type": "string"
|
||||
},
|
||||
|
||||
@@ -2012,6 +2012,9 @@
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"require_kyc": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"start_time": {
|
||||
"type": "string"
|
||||
},
|
||||
|
||||
@@ -14,6 +14,8 @@ definitions:
|
||||
type: integer
|
||||
name:
|
||||
type: string
|
||||
require_kyc:
|
||||
type: boolean
|
||||
start_time:
|
||||
type: string
|
||||
thumbnail:
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user