EncodeUserID encode user id to hash id
(encoder Encoder, uid int)
| 77 | |
| 78 | // EncodeUserID encode user id to hash id |
| 79 | func EncodeUserID(encoder Encoder, uid int) string { |
| 80 | res, _ := encoder.Encode([]int{uid, UserID}) |
| 81 | return res |
| 82 | } |
| 83 | |
| 84 | // EncodeGroupID encode group id to hash id |
| 85 | func EncodeGroupID(encoder Encoder, uid int) string { |
no test coverage detected