Documentation
¶
Index ¶
- func ComparePassword(hashedPwd string, plainPwd []byte) bool
- func CreateComment(c *gin.Context, app *middleware.App) (interface{}, string, error)
- func DeleteCommentsByOrganization(c *gin.Context, app *middleware.App) (interface{}, string, error)
- func GetCommentsByOrganization(c *gin.Context, app *middleware.App) (interface{}, string, error)
- func GetMembersByOrganization(c *gin.Context, app *middleware.App) (interface{}, string, error)
- func HashAndSaltPassword(rawPwd string) (string, error)
- func SubmitLogin(c *gin.Context, app *middleware.App) (interface{}, string, error)
- type AuthLoginResponse
- type CommentCreateResponse
- type CommentsDeleteResponse
- type CommentsGetResponse
- type LoginCredential
- type MembersGetResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePassword ¶
ComparePassword function
func CreateComment ¶
CreateComment function
func DeleteCommentsByOrganization ¶
DeleteCommentsByOrganization function
func GetCommentsByOrganization ¶
GetCommentsByOrganization function
func GetMembersByOrganization ¶
GetMembersByOrganization function
func HashAndSaltPassword ¶
HashAndSaltPassword function
func SubmitLogin ¶
SubmitLogin function
Types ¶
type AuthLoginResponse ¶
type AuthLoginResponse struct { Message string `json:"message" groups:"login"` Token middleware.Token `json:"token" groups:"login"` }
AuthLoginResponse struct
type CommentCreateResponse ¶
type CommentCreateResponse struct { Message string `json:"message" groups:"comment"` Comment model.Comment `json:"comment" groups:"comment"` }
CommentCreateResponse struct
type CommentsDeleteResponse ¶
type CommentsDeleteResponse struct { Message string `json:"message" groups:"deleteComments"` DeleteCount int64 `json:"delete_count" groups:"deleteComments"` }
CommentsDeleteResponse struct
type CommentsGetResponse ¶
type CommentsGetResponse struct { Message string `json:"message" groups:"orgComments"` model.CommentsPagination }
CommentsGetResponse struct
type LoginCredential ¶
type LoginCredential struct { LoginID string `json:"login_id" valid:"stringlength(5|200)~LOGIN_ID_VALUE_INVALID" groups:"member"` Password string `json:"password" valid:"stringlength(1|200)~PASSWORD_VALUE_INVALID" groups:"member"` }
LoginCredential struct
type MembersGetResponse ¶
type MembersGetResponse struct { Message string `json:"message" groups:"membersOrganization"` model.MembersPagination }
MembersGetResponse struct
Click to show internal directories.
Click to hide internal directories.