Apply .gitignore rules

This commit is contained in:
皮蛋13361098506
2025-01-06 16:21:36 +08:00
parent 1b77f62820
commit ccd2c530cf
580 changed files with 69806 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package managecenterModel
// 服务器Id区间类型
type ServerIdRange struct {
Min int32 // 最小值
Max int32 // 最大值
}
// 是否包含指定的值
// value:指定值
// 返回值:
// 是否包含指定的值
func (this *ServerIdRange) Contains(value int32) bool {
return this.Min <= value && value <= this.Max
}
func NewServerIdRange(min, max int32) *ServerIdRange {
return &ServerIdRange{
Min: min,
Max: max,
}
}