mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
31 lines
679 B
Go
31 lines
679 B
Go
|
package member
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"demodesk/neko/internal/utils"
|
||
|
)
|
||
|
|
||
|
func (h *MemberHandler) memberCreate(w http.ResponseWriter, r *http.Request) {
|
||
|
|
||
|
utils.HttpSuccess(w)
|
||
|
}
|
||
|
|
||
|
func (h *MemberHandler) memberRead(w http.ResponseWriter, r *http.Request) {
|
||
|
member := GetMember(r)
|
||
|
|
||
|
utils.HttpSuccess(w, "Your name is " + member.Name() + ".")
|
||
|
}
|
||
|
|
||
|
func (h *MemberHandler) memberUpdate(w http.ResponseWriter, r *http.Request) {
|
||
|
member := GetMember(r)
|
||
|
|
||
|
utils.HttpSuccess(w, "Your name is " + member.Name() + ".")
|
||
|
}
|
||
|
|
||
|
func (h *MemberHandler) memberDelete(w http.ResponseWriter, r *http.Request) {
|
||
|
member := GetMember(r)
|
||
|
|
||
|
utils.HttpSuccess(w, "Your name is " + member.Name() + ".")
|
||
|
}
|