member

package
v0.0.0-...-a4deb0f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminMemberAdd

func AdminMemberAdd() func(*gin.Context)

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

func AdminMemberDelete() func(*gin.Context)

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

func AdminMemberEdit() func(*gin.Context)

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

func AdminMemberView() func(*gin.Context)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL