fix new team 500 (#6749)

* fix new team 500

* Update models/unit.go

Co-Authored-By: lunny <xiaolunwen@gmail.com>
This commit is contained in:
Lunny Xiao 2019-04-25 17:00:34 +08:00 committed by GitHub
parent dabee9b1a4
commit 65b3f513c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -25,6 +25,11 @@ const (
UnitTypeExternalTracker // 7 ExternalTracker
)
// Value returns integer value for unit type
func (u UnitType) Value() int {
return int(u)
}
func (u UnitType) String() string {
switch u {
case UnitTypeCode: