Feat: add swagger notes
This commit is contained in:
28
handlers/auth/postGenLoginUrl.go
Normal file
28
handlers/auth/postGenLoginUrl.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package auth
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"gitea.konchin.com/go2025/backend/utils"
|
||||
"github.com/uptrace/bunrouter"
|
||||
)
|
||||
|
||||
type postGenLoginUrlInput struct {
|
||||
UserId string `json:"userId"`
|
||||
}
|
||||
|
||||
type postGenLoginUrlOutput struct {
|
||||
LoginUrl string `json:"loginUrl"`
|
||||
}
|
||||
|
||||
// PostGenLoginUrl
|
||||
//
|
||||
// @param payload body postGenLoginUrlInput true "Payload"
|
||||
// @success 200 {object} postGenLoginUrlOutput "Payload"
|
||||
// @failure 400
|
||||
// @router /auth/gen-login-url [post]
|
||||
func (self *Handlers) PostGenLoginUrl(
|
||||
w http.ResponseWriter, req bunrouter.Request,
|
||||
) error {
|
||||
return utils.Success(w)
|
||||
}
|
||||
Reference in New Issue
Block a user