feat: system notice
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
package models
|
||||
|
||||
type Notice struct {
|
||||
Id int64 `gorm:"primaryKey"`
|
||||
Content string `gorm:"content"`
|
||||
Status int `gorm:"status"`
|
||||
Creator int64 `gorm:"creator"`
|
||||
Created int64 `gorm:"created"`
|
||||
Updated int64 `gorm:"updated"`
|
||||
}
|
||||
|
||||
type NoticeParam struct {
|
||||
Content string `json:"content"`
|
||||
Creator int64 `gorm:"creator"`
|
||||
}
|
||||
|
||||
type NoticeUpdateParam struct {
|
||||
Id int64 `json:"id" binding:"required,gt=0"`
|
||||
}
|
||||
|
||||
type NoticeDeleteParam struct {
|
||||
Ids []int64 `json:"ids" binding:"required"`
|
||||
}
|
||||
|
||||
type UnReadNotice struct {
|
||||
Count int `json:"count"`
|
||||
}
|
||||
|
||||
type NoticeList struct {
|
||||
Id int64 `json:"id"`
|
||||
Content string `json:"content"`
|
||||
Status int `json:"status"`
|
||||
Created int64 `json:"created"`
|
||||
}
|
||||
Reference in New Issue
Block a user