You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
367 B
24 lines
367 B
package service |
|
|
|
import ( |
|
"context" |
|
) |
|
|
|
var ( |
|
rageMap = map[int16]string{ |
|
1: "S", |
|
2: "A", |
|
3: "B", |
|
4: "C", |
|
} |
|
) |
|
|
|
// BlockedKPIInfo . |
|
func (s *Service) BlockedKPIInfo(c context.Context, mid int64, rage int16) (err error) { |
|
if len(rageMap[rage]) != 0 { |
|
s.figureDao.BlockedRage(c, mid, rage) |
|
} else { |
|
s.figureDao.BlockedRage(c, mid, int16(0)) |
|
} |
|
return |
|
}
|
|
|