Commit b9f5ba5d authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

fix bool verify

parent 2f80849f
......@@ -70,7 +70,7 @@ type CreateTaskRequest struct {
Reward int `json:"reward" binding:"required"`
Start int `json:"start" binding:"required"`
End int `json:"end" binding:"required"`
Daily bool `json:"daily" binding:"required"`
Daily *bool `json:"daily" binding:"required"`
TelegramActiveThreshold int `json:"telegramActiveThreshold"` // 仅电报活跃可用
TwitterAPIKey string `json:"twitterAPIKey"`
TwitterAPISecret string `json:"twitterAPISecret"`
......
......@@ -22,7 +22,7 @@ func (s *Service) CreateTask(req *apiModel.CreateTaskRequest) (taskId int, err e
Reward: req.Reward,
Start: req.Start,
End: req.End,
Daily: req.Daily,
Daily: *req.Daily,
}
config := dao.TwitterConfig{
APIKey: req.TwitterAPIKey,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment