You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
471 B
Go
29 lines
471 B
Go
3 years ago
|
package domain
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
"errors"
|
||
|
)
|
||
|
|
||
|
type UserAgent struct {
|
||
|
ID int64
|
||
|
Name string
|
||
|
LastSeen time.Time
|
||
|
AllowanceDuration time.Duration
|
||
|
FileQuota FileSizeQuota
|
||
|
}
|
||
|
|
||
|
type BogFile struct {
|
||
|
UserAgentId int64
|
||
|
Path string
|
||
|
Size int64
|
||
|
CreatedAt time.Time
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
ErrDuplicate = errors.New("record already exists")
|
||
|
ErrNotExists = errors.New("row not exists")
|
||
|
ErrUpdateFailed = errors.New("update failed")
|
||
|
ErrDeleteFailed = errors.New("delete failed")
|
||
|
)
|