Documentation ¶
Index ¶
- type App
- func (s *App) ChangePassword(w http.ResponseWriter, r *http.Request)
- func (s *App) Create(w http.ResponseWriter, r *http.Request)
- func (s *App) Delete(w http.ResponseWriter, r *http.Request)
- func (s *App) GetPort(w http.ResponseWriter, r *http.Request)
- func (s *App) List(w http.ResponseWriter, r *http.Request)
- func (s *App) Route(r chi.Router)
- func (s *App) UpdatePort(w http.ResponseWriter, r *http.Request)
- type ChangePassword
- type Create
- type Delete
- type UpdatePort
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct{}
func (*App) ChangePassword ¶
func (s *App) ChangePassword(w http.ResponseWriter, r *http.Request)
ChangePassword 修改密码
func (*App) UpdatePort ¶
func (s *App) UpdatePort(w http.ResponseWriter, r *http.Request)
UpdatePort 设置端口
type ChangePassword ¶
type Delete ¶
type Delete struct {
Username string `form:"username" json:"username" validate:"required"`
}
type UpdatePort ¶
type UpdatePort struct {
Port uint `form:"port" json:"port" validate:"required|number|min:1|max:65535"`
}
Click to show internal directories.
Click to hide internal directories.