mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-04 09:19:29 +02:00
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 {
|
||||
|
@ -65,7 +65,7 @@ func (h *MembersHandler) membersCreate(w http.ResponseWriter, r *http.Request) {
|
|||
CanAccessClipboard: true,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
if !utils.HttpJsonRequest(w, r, data) {
|
||||
return
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ func (h *MembersHandler) membersCreate(w http.ResponseWriter, r *http.Request) {
|
|||
utils.HttpInternalServerError(w, err)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
utils.HttpSuccess(w, MemberDataPayload{
|
||||
ID: id,
|
||||
Profile: data.Profile,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue