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

26 lines
752 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 版权属于yitter(yitter@126.com)
* 代码编辑guoyahao
* 代码修订yitter
* 开源地址https://gitee.com/yitter/idgenerator
*/
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
}