feat:完善项目
This commit is contained in:
@ -12,6 +12,7 @@ import (
|
||||
|
||||
// IModel
|
||||
type IModel interface {
|
||||
SetID(id uint64)
|
||||
GetID() uint64
|
||||
GetEncodeID() string
|
||||
TableName() string
|
||||
@ -60,6 +61,10 @@ const (
|
||||
FieldsForDeleted string = "is_deleted"
|
||||
)
|
||||
|
||||
func (m *Model) SetID(id uint64) {
|
||||
m.ID = id
|
||||
}
|
||||
|
||||
func (m *Model) GetID() uint64 {
|
||||
return m.ID
|
||||
}
|
||||
|
Reference in New Issue
Block a user