package com.pingcap.community.blogserver.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.annotation.Validated;

@Validated
@Configuration
@ConfigurationProperties(prefix = "blog.award")
@Data
public class AwardConfig {

  // Execute at 10am every day at east 8 time zone by default.
  private String awardPostCron = "0 0 2 * * *";

  private Integer postAwardLevel1 = 100;
  private Integer postAwardLevel2 = 150;
  private Integer postAwardLevel3 = 200;
  private Integer awardPostAgainAfterDays = 30;
  private Integer maxPostAdditionalAwards = 400;

  private Integer postLikeAwardExps = 2;
  private Integer postLikeAwardPoints = 2;
  private Integer maxPostLikeAwardPerDay = 10;

  private Integer postFavoriteAwardExps = 5;
  private Integer postFavoriteAwardPoints = 5;
  private Integer maxPostFavoriteAwardPerDay = 10;

  private Integer postRecommendAwardExps = 10;
  private Integer postRecommendAwardPoints = 20;

}
