Documentation ¶
Index ¶
- func CRC16(data []byte) uint16
- func CheckOperationType(workStat constdefine.WorkStatusEnum, needOperation constdefine.OpTypeEnum) bool
- func EncodeMD5(value string) string
- func GenerateToken(id string) (string, error)
- func GetPage(c *gin.Context) int
- func GunCode2CanIndex(devType, gunCode int) int
- func JoinKey[T ~string](a, b T, sep string, ex ...T) string
- func PlatStat2DevStat(statType, statValue string) (constdefine.WorkStatusEnum, error)
- func Setup()
- type Claims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckOperationType ¶
func CheckOperationType(workStat constdefine.WorkStatusEnum, needOperation constdefine.OpTypeEnum) bool
校验操作类型是否有效
func GenerateToken ¶
GenerateToken generate tokens used for auth
func PlatStat2DevStat ¶
func PlatStat2DevStat(statType, statValue string) (constdefine.WorkStatusEnum, error)
PlatStat2DevStat 平台状态字符串转换为设备状态
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.