Documentation ¶
Index ¶
- func CreateArticle(title string, content string) (primitive.ObjectID, error)
- func DeleteArticle(id string) error
- func GetAllArticles(page int64, pageSize int64) []models.Article
- func GetArticleById(id string) (models.Article, error)
- func Login(username, password string) (string, error)
- func UpdateArticle(id, title, content string) error
- func UpdatePassword(username, oldPassword, newPassword string) error
- type JWTService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteArticle ¶
func UpdateArticle ¶
func UpdatePassword ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.