Documentation
¶
Index ¶
- func CreateCampaignHandler(c *gin.Context)
- func GetUserPointsHistoryHandler(c *gin.Context)
- func GetUserTaskStatusHandler(c *gin.Context)
- func ProcessSharePoolTicker()
- func StartServer()
- type CampaignResp
- type CreateCampaignReq
- type GetUserPointsHistoryResp
- type GetUserTaskStatusResp
- type PointsHistoryResp
- type TaskStatusResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCampaignHandler ¶
func ProcessSharePoolTicker ¶
func ProcessSharePoolTicker()
func StartServer ¶
func StartServer()
Types ¶
type CampaignResp ¶
type CreateCampaignReq ¶
type CreateCampaignReq struct {
Name string `json:"name" binding:"required"`
PoolAddress string `json:"poolAddress" binding:"required"`
StartAt int64 `json:"startAt" binding:"required"`
OnboardingReward float64 `json:"onboardingReward" binding:"required"`
OnboardingThreshold float64 `json:"onboardingThreshold" binding:"required"`
PointPool float64 `json:"pointPool" binding:"required"`
Schedule string `json:"schedule" binding:"required"`
Round int64 `json:"round" binding:"required"`
}
type GetUserPointsHistoryResp ¶
type GetUserPointsHistoryResp struct {
PointsHistory []PointsHistoryResp `json:"pointsHistory"`
Total float64 `json:"total"`
}
type GetUserTaskStatusResp ¶
type GetUserTaskStatusResp struct {
Campaigns []CampaignResp `json:"campaigns"`
}
type PointsHistoryResp ¶
type PointsHistoryResp struct {
CampaignID int `json:"campaignId"`
CampaignName string `json:"campaignName"`
PoolAddress string `json:"poolAddress"`
TaskID int `json:"taskId"`
TaskType string `json:"taskType"`
Description string `json:"description"`
Points float64 `json:"points"`
Timestamp time.Time `json:"timestamp"`
}
type TaskStatusResp ¶
Click to show internal directories.
Click to hide internal directories.