neko/internal/api/member/crud.go

31 lines
679 B
Go
Raw Normal View History

2020-11-22 11:39:24 +13:00
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() + ".")
}