Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminMemberAdd ¶
AdminMemberAdd godoc @Summary Admin can add member @Description Admin can add member @Tags adminfunction @Accept json @Produce json @Param name body string true "Name" @Param email body string true "Email" @Param pass_word body string true "PassWord" @Param phone_number body string true "PhoneNumber" @Param address body string true "Address" @Param role body string true "Role" @Success 200 {object} res.Response @Failure 400 {object} res.Response @Failure 403 {object} res.Response @Failure 500 {object} res.Response @Router /v1/api/admin/member_add [post]
func AdminMemberDelete ¶
AdminMemberDelete godoc @Summary Admin can delete member @Description Admin can delete member @Tags adminfunction @Accept json @Produce json @Param email path string true "Email" @Success 200 {object} res.Response @Failure 400 {object} res.Response @Failure 403 {object} res.Response @Failure 500 {object} res.Response @Router /v1/api/admin/member_delete/{email} [delete]
func AdminMemberEdit ¶
AdminMemberEdit godoc @Summary Admin can edit member @Description Admin can edit member @Tags adminfunction @Accept json @Produce json @Param user_id path string true "User ID" @Param name body string true "Name" @Param email body string true "Email" @Param phone_number body string true "PhoneNumber" @Param address body string true "Address" @Param role body string true "Role" @Success 200 {object} res.Response @Failure 400 {object} res.Response @Failure 403 {object} res.Response @Failure 500 {object} res.Response @Router /v1/api/admin/member_edit/{user_id} [patch]
func AdminMemberView ¶
AdminMemberView godoc @Summary Admin can view all member @Description Admin can view all member @Tags adminfunction @Accept json @Produce json @Success 200 {object} res.Response @Failure 400 {object} res.Response @Failure 403 {object} res.Response @Failure 500 {object} res.Response @Router /v1/api/admin/member_viewall [get]
Types ¶
This section is empty.