You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

OverCostActionArg.go 768 B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
12345678910111213141516171819202122232425
  1. /*
  2. * 版权属于:yitter(yitter@126.com)
  3. * 代码编辑:guoyahao
  4. * 代码修订:yitter
  5. * 开源地址:https://github.com/yitter/idgenerator
  6. */
  7. package idgen
  8. type OverCostActionArg struct {
  9. ActionType int32
  10. TimeTick int64
  11. WorkerId uint16
  12. OverCostCountInOneTerm int32
  13. GenCountInOneTerm int32
  14. TermIndex int32
  15. }
  16. func (ocaa OverCostActionArg) OverCostActionArg(workerId uint16, timeTick int64, actionType int32, overCostCountInOneTerm int32, genCountWhenOverCost int32, index int32) {
  17. ocaa.ActionType = actionType
  18. ocaa.TimeTick = timeTick
  19. ocaa.WorkerId = workerId
  20. ocaa.OverCostCountInOneTerm = overCostCountInOneTerm
  21. ocaa.GenCountInOneTerm = genCountWhenOverCost
  22. ocaa.TermIndex = index
  23. }