config.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package blocked
  2. // const config
  3. const (
  4. ConfigCaseGiveHours = "case_give_hours" // 案件发放时长
  5. ConfigCaseCheckHours = "case_check_hours" // 单案审核时长
  6. ConfigJuryVoteRadio = "jury_vote_radio" // 投准率下限
  7. ConfigCaseJudgeRadio = "case_judge_radio" // 判决阙值
  8. ConfigCaseVoteMin = "case_vote_min" // 案件投票数下限
  9. ConfigCaseObtainMax = "case_obtain_max" // 每日获取案件数
  10. ConfigCaseVoteMax = "case_vote_max" // 结案投票数
  11. ConfigJuryApplyMax = "jury_apply_max" // 每日发放风纪委上限
  12. ConfigCaseLoadMax = "case_load_max" // 案件发放最大队列数
  13. ConfigCaseLoadSwitch = "case_load_switch" // 案件发放进入队列开关
  14. ConfigCaseVoteMaxPercent = "case_vote_max_percent" // 结案投票数的百分比
  15. )
  16. // Config blocked_config model
  17. type Config struct {
  18. ID int64
  19. ConfigKey string
  20. Name string
  21. Content string
  22. Description string
  23. OperID int64 `json:"oper_id"`
  24. OperatorName string
  25. }
  26. // VoteNum .
  27. type VoteNum struct {
  28. RateS int8 `json:"rate_s"`
  29. RateA int8 `json:"rate_a"`
  30. RateB int8 `json:"rate_b"`
  31. RateC int8 `json:"rate_c"`
  32. RateD int8 `json:"rate_d"`
  33. }
  34. // TableName case tablename
  35. func (*Config) TableName() string {
  36. return "blocked_config"
  37. }