feat: add wxshare
This commit is contained in:
@@ -21,8 +21,9 @@ type TokenResponse struct {
|
||||
}
|
||||
|
||||
// Login
|
||||
// @Router /admin/auth [post]
|
||||
// @Bind body body
|
||||
//
|
||||
// @Router /admin/auth [post]
|
||||
// @Bind body body
|
||||
func (ctl *auth) Login(ctx fiber.Ctx, body *AuthBody) (*TokenResponse, error) {
|
||||
if body.Username == "pl.yang" && body.Password == "Xixi@0202" {
|
||||
claim := ctl.jwt.CreateClaims(jwt.BaseClaims{
|
||||
|
||||
Reference in New Issue
Block a user