直接完成
This commit is contained in:
17
data/dto/user.go
Normal file
17
data/dto/user.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package dto
|
||||
|
||||
import "integrity-checkin/data/po"
|
||||
|
||||
type UserClaims struct {
|
||||
UserID int `json:"user_id"`
|
||||
RoleID int `json:"role_id"`
|
||||
}
|
||||
type SDULoginData struct {
|
||||
RealName string
|
||||
Username string
|
||||
}
|
||||
type UserActivityExtended struct {
|
||||
po.UserActivity
|
||||
ActivityCategory string `json:"activity_category"`
|
||||
ActivityName string `json:"activity_name"`
|
||||
}
|
||||
Reference in New Issue
Block a user