package
0.0.0-20210818044030-d66610b8e517
Repository: https://github.com/judascrow/cojspcl-api.git
Documentation: pkg.go.dev

# Functions

@Summary เปลี่ยนรหัสผ่าน @Description เปลี่ยนรหัสผ่าน @Tags User @Accept json @Produce json @Param slug path string true "slug ผู้ใช้งาน" @Param user body models.ChangePassword true "เปลี่ยนรหัสผ่าน" @Success 201 {object} models.SwagChangePasswordResponse @Failure 400 {object} models.SwagError400 @Failure 404 {object} models.SwagError404 @Failure 500 {object} models.SwagError500 @Security ApiKeyAuth @Router /users/{slug}/password [post].
No description provided by the author
No description provided by the author
No description provided by the author
@Summary เพิ่มผู้ใช้งาน @Description เพิ่มผู้ใช้งาน @Tags User @Accept json @Produce json @Param user body models.SwagUserBodyIncludePassword true "เพิ่มผู้ใช้งาน" @Success 201 {object} models.SwagCreateUserResponse @Failure 400 {object} models.SwagError400 @Failure 404 {object} models.SwagError404 @Failure 500 {object} models.SwagError500 @Security ApiKeyAuth @Router /users [post].
No description provided by the author
@Summary ลบผู้ใช้งาน @Description ลบผู้ใช้งาน @Tags User @Accept json @Produce json @Param slug path string true "slug ผู้ใช้งาน" @Success 201 {object} models.SwagDeleteBase @Failure 400 {object} models.SwagError400 @Failure 404 {object} models.SwagError404 @Failure 500 {object} models.SwagError500 @Security ApiKeyAuth @Router /users/{slug} [delete].
No description provided by the author
No description provided by the author
No description provided by the author
@Summary รายการสิทธิ์การใช้งาน @Description รายการสิทธิ์การใช้งาน @Tags Role @Accept json @Produce json @Success 200 {object} models.SwagGetRoleResponse @Failure 400 {object} models.SwagError400 @Failure 404 {object} models.SwagError404 @Failure 500 {object} models.SwagError500 @Security ApiKeyAuth @Router /roles [get].
No description provided by the author
No description provided by the author
@Summary รายการผู้ใช้งาน @Description รายการผู้ใช้งาน @Tags User @Accept json @Produce json @Success 200 {object} models.SwagGetAllUsersResponse @Failure 400 {object} models.SwagError400 @Failure 404 {object} models.SwagError404 @Failure 500 {object} models.SwagError500 @Security ApiKeyAuth @Router /users [get].
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
@Summary ข้อมูลผู้ใช้งาน @Description ข้อมูลผู้ใช้งาน @Tags User @Accept json @Produce json @Param slug path string true "slug ผู้ใช้งาน" @Success 200 {object} models.SwagGetUserResponse @Failure 400 {object} models.SwagError400 @Failure 404 {object} models.SwagError404 @Failure 500 {object} models.SwagError500 @Security ApiKeyAuth @Router /users/{slug} [get].
@Summary ข้อมูลตนเอง @Description ข้อมูลตนเอง @Tags Authentication @Accept json @Produce json @Success 200 {object} models.SwagGetUserResponse @Failure 400 {object} models.SwagError400 @Failure 404 {object} models.SwagError404 @Failure 500 {object} models.SwagError500 @Security ApiKeyAuth @Router /auth/me [get].
@Summary สมัครเข้าใช้งาน @Description สมัครเข้าใช้งาน @Tags Authentication @Accept json @Produce json @Param user body models.RegisterUser true "สมัครเข้าใช้งาน" @Success 201 {object} models.SwagCreateUserResponse @Failure 400 {object} models.SwagError400 @Failure 404 {object} models.SwagError404 @Failure 500 {object} models.SwagError500 @Router /auth/register [post].
No description provided by the author
@Summary แก้ไขผู้ใช้งาน @Description แก้ไขผู้ใช้งาน @Tags User @Accept json @Produce json @Param slug path string true "slug ผู้ใช้งาน" @Param user body models.SwagUserBody true "แก้ไขผู้ใช้งาน" @Success 201 {object} models.SwagUpdateUserResponse @Failure 400 {object} models.SwagError400 @Failure 404 {object} models.SwagError404 @Failure 500 {object} models.SwagError500 @Security ApiKeyAuth @Router /users/{slug} [put].
@Summary อัพโหลดรูป avatar @Description อัพโหลดรูป avatar @Tags User @Accept json @Produce json @Param slug path string true "slug ผู้ใช้งาน" @Param user body models.UploadAvatar true "อัพโหลดรูป avatar" @Success 201 {object} models.SwagUploadAvatarResponse @Failure 400 {object} models.SwagError400 @Failure 404 {object} models.SwagError404 @Failure 500 {object} models.SwagError500 @Security ApiKeyAuth @Router /users/{slug}/avatar [post].
No description provided by the author