Documentation
¶
Index ¶
Constants ¶
View Source
const ( LoginStatusSuccess = modellogmgmt.LoginStatusSuccess LoginStatusFailure = modellogmgmt.LoginStatusFailure LoginStatusLogout = modellogmgmt.LoginStatusLogout )
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register()
Register registers two modules: LoginLog and OperationLog.
Models:
- LoginLog
- OperationLog
Routes:
- GET /api/log/loginlog
- GET /api/log/loginlog/:id
- GET /api/log/operationlog
- GET /api/log/operationlog/:id
Cronjob:
- cleanup operationlog and loginlog hourly.
Enable Audit to records all operation logs.
Types ¶
type LoginLog ¶
type LoginLog = modellogmgmt.LoginLog
type LoginLogModule ¶
type LoginLogModule struct{}
func (*LoginLogModule) Param ¶
func (*LoginLogModule) Param() string
func (*LoginLogModule) Pub ¶
func (*LoginLogModule) Pub() bool
func (*LoginLogModule) Route ¶
func (*LoginLogModule) Route() string
type LoginLogService ¶
type LoginLogService = servicelogmgmt.LoginLogService
type LoginStatus ¶
type LoginStatus = modellogmgmt.LoginStatus
type OperationLog ¶
type OperationLog = modellogmgmt.OperationLog
type OperationLogModule ¶
type OperationLogModule struct{}
func (*OperationLogModule) Param ¶
func (*OperationLogModule) Param() string
func (*OperationLogModule) Pub ¶
func (*OperationLogModule) Pub() bool
func (*OperationLogModule) Route ¶
func (*OperationLogModule) Route() string
func (*OperationLogModule) Service ¶
func (*OperationLogModule) Service() types.Service[*OperationLog, *OperationLog, *OperationLog]
type OperationLogService ¶
type OperationLogService = servicelogmgmt.OperationLogService
Click to show internal directories.
Click to hide internal directories.