v1

package
v0.0.0-...-1580491 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePassword

func ComparePassword(hashedPwd string, plainPwd []byte) bool

ComparePassword function

func CreateComment

func CreateComment(c *gin.Context, app *middleware.App) (interface{}, string, error)

CreateComment function

func DeleteCommentsByOrganization

func DeleteCommentsByOrganization(c *gin.Context, app *middleware.App) (interface{}, string, error)

DeleteCommentsByOrganization function

func GetCommentsByOrganization

func GetCommentsByOrganization(c *gin.Context, app *middleware.App) (interface{}, string, error)

GetCommentsByOrganization function

func GetMembersByOrganization

func GetMembersByOrganization(c *gin.Context, app *middleware.App) (interface{}, string, error)

GetMembersByOrganization function

func HashAndSaltPassword

func HashAndSaltPassword(rawPwd string) (string, error)

HashAndSaltPassword function

func SubmitLogin

func SubmitLogin(c *gin.Context, app *middleware.App) (interface{}, string, error)

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

Jump to

Keyboard shortcuts

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