feat: 0.1.2
1. login page && auth required 2. file dir cleanup
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
package model
|
||||
|
||||
type Meta struct {
|
||||
Filename string `json:"filename" mapstructure:"filename"`
|
||||
CreatedAt int64 `json:"created_at" mapstructure:"created_at"`
|
||||
Size int64 `json:"size" mapstructure:"size"`
|
||||
UploaderIp string `json:"uploader_ip" mapstructure:"uploader_ip"`
|
||||
Filename string `json:"filename" mapstructure:"filename"`
|
||||
CreatedAt int64 `json:"created_at" mapstructure:"created_at"`
|
||||
Size int64 `json:"size" mapstructure:"size"`
|
||||
Uploader string `json:"uploader" mapstructure:"uploader"`
|
||||
}
|
||||
|
10
internal/model/user.go
Normal file
10
internal/model/user.go
Normal file
@ -0,0 +1,10 @@
|
||||
package model
|
||||
|
||||
type User struct {
|
||||
Id int `json:"id"`
|
||||
Username string `json:"username"`
|
||||
Key string `json:"key"`
|
||||
Password string `json:"-"`
|
||||
LoginAt int64 `json:"login_at"`
|
||||
Token string `json:"token"`
|
||||
}
|
Reference in New Issue
Block a user