fmt.
This commit is contained in:
parent
85bb26d77c
commit
900ae006b8
4 changed files with 8 additions and 8 deletions
|
|
@ -1,16 +1,16 @@
|
|||
package members
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"demodesk/neko/internal/types"
|
||||
"demodesk/neko/internal/utils"
|
||||
)
|
||||
|
||||
type MemberDataPayload struct {
|
||||
ID string `json:"id"`
|
||||
Profile types.MemberProfile `json:"profile"`
|
||||
ID string `json:"id"`
|
||||
Profile types.MemberProfile `json:"profile"`
|
||||
}
|
||||
|
||||
type MemberCreatePayload struct {
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ func (provider *MemberProviderCtx) Insert(username string, password string, prof
|
|||
entries[id] = MemberEntry{
|
||||
// TODO: Use hash function.
|
||||
Password: password,
|
||||
Profile: profile,
|
||||
Profile: profile,
|
||||
}
|
||||
|
||||
return id, provider.serialize(entries)
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ func (provider *MemberProviderCtx) Insert(username string, password string, prof
|
|||
provider.entries[id] = &MemberEntry{
|
||||
// TODO: Use hash function.
|
||||
Password: password,
|
||||
Profile: profile,
|
||||
Profile: profile,
|
||||
}
|
||||
|
||||
return id, nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue