package domain //用户 type UserInfo struct { UsersName string `json:"userName"` Phone string `json:"phone"` UsersId int `json:"userId,string"` UserCode string `json:"userCode"` } const c = 10128 func EncryptUserId(userId int64) int64 { return userId + c }