19 lines
646 B
Go
19 lines
646 B
Go
package logic
|
|
|
|
import (
|
|
deviceentity "spark-server/internal/module/device/entity"
|
|
"spark-server/internal/module/meta/entity"
|
|
"spark-server/internal/pkg/i18n"
|
|
)
|
|
|
|
func deviceType(lang i18n.Lang) []entity.Item {
|
|
return []entity.Item{
|
|
item(lang, "device_type", "ios", int(deviceentity.TypeIOS)),
|
|
item(lang, "device_type", "android", int(deviceentity.TypeAndroid)),
|
|
item(lang, "device_type", "harmony", int(deviceentity.TypeHarmony)),
|
|
item(lang, "device_type", "windows", int(deviceentity.TypeWindows)),
|
|
item(lang, "device_type", "macos", int(deviceentity.TypeMacOS)),
|
|
item(lang, "device_type", "web", int(deviceentity.TypeWeb)),
|
|
}
|
|
}
|