Documentation ¶
Index ¶
- func CheckUserPassword(account string, password string) (bool, error)
- func CountProblemByOptions(options GetProblemOptions) (int64, error)
- func CountUserByOptions(options GetUserOptions) (int64, error)
- func CreateProblem(problem model.Problem) error
- func CreateUser(user model.User) error
- func DeleteProblem(problem model.Problem) error
- func DeleteUser(user model.User) error
- func GetProblem(slug string) (*model.Problem, error)
- func GetProblemListByOptions(options GetProblemOptions) ([]model.Problem, int64, error)
- func GetPublicUser(account string) (*model.User, error)
- func GetTagsList(problem model.Problem) []string
- func GetUser(account string) (*model.User, error)
- func GetUserByOptions(options GetUserOptions) ([]model.User, int64, error)
- func UpdateProblem(problem model.Problem) error
- func UpdateUser(update model.User) error
- type GetProblemOptions
- type GetUserOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountProblemByOptions ¶
func CountProblemByOptions(options GetProblemOptions) (int64, error)
func CountUserByOptions ¶
func CountUserByOptions(options GetUserOptions) (int64, error)
Count the total number of users that match the options, ignoring the offset and limit.
func CreateProblem ¶
func CreateUser ¶
Account, Password, Roles will be used to create a new user.
func DeleteProblem ¶
func DeleteUser ¶
func GetProblemListByOptions ¶
func GetProblemListByOptions(options GetProblemOptions) ([]model.Problem, int64, error)
func GetTagsList ¶
func GetUserByOptions ¶
func GetUserByOptions(options GetUserOptions) ([]model.User, int64, error)
func UpdateProblem ¶
func UpdateUser ¶
Types ¶
type GetProblemOptions ¶
Click to show internal directories.
Click to hide internal directories.