MCPcopy Create free account
hub / github.com/TruthHun/BookStack / CreditRule

Struct CreditRule

models/credit.go:21–31  ·  view source on GitHub ↗

CreditRule 规则

Source from the content-addressed store, hash-verified

19
20// CreditRule 规则
21type CreditRule struct {
22 Id int // 规则ID
23 Identify string `orm:"unique;size(32)"` // 积分标识,唯一
24 Title string // 规则名称
25 Intro string // 规则简介
26 Score int // 周期内每次奖励的积分
27 CycleType int8 // 奖励周期
28 RewardTimes int // 周次内总共奖励的次数
29 CreatedAt time.Time
30 UpdatedAt time.Time
31}
32
33// CreditLog 积分变更日志记录
34type CreditLog struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected