1
0
mirror of synced 2026-04-17 22:08:39 +08:00
Files
SnowFlake-IdGenerator/Go/source/yitidgen/contract/OverCostActionArg.go
zhouzj ffb9978f07 AddGo
2021-03-19 22:14:50 +08:00

20 lines
597 B
Go

package contract
type OverCostActionArg struct {
ActionType int
TimeTick int64
WorkerId int64
OverCostCountInOneTerm int
GenCountInOneTerm int
TermIndex int
}
func (ocaa OverCostActionArg) OverCostActionArg(workerId int64, timeTick int64, actionType int, overCostCountInOneTerm int, genCountWhenOverCost int, index int) {
ocaa.ActionType = actionType
ocaa.TimeTick = timeTick
ocaa.WorkerId = workerId
ocaa.OverCostCountInOneTerm = overCostCountInOneTerm
ocaa.GenCountInOneTerm = genCountWhenOverCost
ocaa.TermIndex = index
}