feat: add tenant admin invite management, ledger overview, order details, and order management features
- Implemented Invite management with creation, searching, and disabling functionalities. - Added Ledger overview for financial transactions with filtering options. - Developed Order Detail view for individual order insights and refund capabilities. - Created Orders management page with search, reset, and pagination features. - Enhanced user experience with toast notifications for actions and error handling.
This commit is contained in:
16
backend/app/http/web/dto/auth.go
Normal file
16
backend/app/http/web/dto/auth.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package dto
|
||||
|
||||
// LoginForm 平台侧用户登录表单(用于获取 JWT 访问凭证)。
|
||||
// 注意:此登录是“用户身份”登录(非超级管理员),用于进入租户管理后台前的身份校验与租户列表查询。
|
||||
type LoginForm struct {
|
||||
// Username 用户名;必须与数据库 users.username 精确匹配。
|
||||
Username string `json:"username,omitempty"`
|
||||
// Password 明文密码;后端会与 users.password 的 bcrypt hash 做比对。
|
||||
Password string `json:"password,omitempty"`
|
||||
}
|
||||
|
||||
// LoginResponse 登录响应。
|
||||
type LoginResponse struct {
|
||||
// Token JWT 访问令牌;前端应以 `Authorization: Bearer <token>` 方式携带。
|
||||
Token string `json:"token"`
|
||||
}
|
||||
Reference in New Issue
Block a user