You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
403 B
32 lines
403 B
package sysBean
|
|
|
|
import "GoClouds/core/utils"
|
|
|
|
type LoginReq struct {
|
|
Name string
|
|
Pass string
|
|
}
|
|
|
|
type LoginRes struct {
|
|
Stat int
|
|
Uid int64
|
|
Xid string
|
|
Name string
|
|
Hash string
|
|
Errs string
|
|
}
|
|
|
|
func (c *LoginRes) SetHash(s string) {
|
|
c.Hash = utils.CacLoginHash(s)
|
|
}
|
|
|
|
type RegReq struct {
|
|
Name string
|
|
Pass string
|
|
Nick string
|
|
}
|
|
type UppassReq struct {
|
|
Xid string
|
|
Pass string
|
|
NPass string
|
|
}
|