HEAVY: migrate accounts and logs to service/repo architecture
This commit is contained in:
parent
5c255fb34b
commit
49e14b5bc5
37 changed files with 1019 additions and 687 deletions
9
repository/log/interface.go
Normal file
9
repository/log/interface.go
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
package log
|
||||
|
||||
import "arimelody-web/model"
|
||||
|
||||
type LogRepository interface {
|
||||
Create(logLevel model.LogLevel, logType string, content string) error
|
||||
Get(id string) (*model.Log, error)
|
||||
Search(levelFilters []model.LogLevel, typeFilters []string, content string, limit int, offset int) ([]*model.Log, error)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue