init: taotie-api 项目初始化
This commit is contained in:
29
model/dto/userdto/enter.go
Normal file
29
model/dto/userdto/enter.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package userdto
|
||||
|
||||
type LoginReq struct {
|
||||
TenantNo string `json:"tenantNo"`
|
||||
UserName string `json:"userName"`
|
||||
Password string `json:"password"`
|
||||
}
|
||||
|
||||
type LoginRes struct {
|
||||
Token string `json:"token"`
|
||||
}
|
||||
|
||||
type RegisterReq struct {
|
||||
TenantName string `json:"tenantName"`
|
||||
UserName string `json:"userName"`
|
||||
Password string `json:"password"`
|
||||
}
|
||||
|
||||
type RegisterRes struct {
|
||||
Token string `json:"token"`
|
||||
}
|
||||
|
||||
type GetCurrentUserInfoReq struct{}
|
||||
|
||||
type GetCurrentUserInfoRes struct {
|
||||
UserId string `json:"userId"`
|
||||
UserName string `json:"userName"`
|
||||
TenantId string `json:"tenantId"`
|
||||
}
|
||||
Reference in New Issue
Block a user