审查视图

pkg/domain/userInfo.go 276 字节
tangxuhui authored
1 2 3 4
package domain

//用户
type UserInfo struct {
yangfu authored
5
	UsersName string `json:"userName"`
tangxuhui authored
6 7
	Phone     string `json:"phone"`
	UsersId   int    `json:"userId,string"`
tangxuhui authored
8
	UserCode  string `json:"userCode"`
tangxuhui authored
9
}
yangfu authored
10 11 12 13 14 15

const c = 10128

func EncryptUserId(userId int64) int64 {
	return userId + c
}