mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-23 18:58:09 +00:00
common/middleware imported app/admin/service/dto for two string constants, which made a package apps are told to build on depend on one particular app.
15 lines
546 B
Go
15 lines
546 B
Go
package global
|
|
|
|
// Status values written to sys_opera_log.status.
|
|
//
|
|
// They live here rather than in app/admin/service/dto because
|
|
// common/middleware/logger.go writes the operation-log message and needs them.
|
|
// A package promised as a stable contract must not compile-depend on a
|
|
// business module: a fork that replaces or drops app/admin would otherwise
|
|
// stop compiling common/middleware, which is not something a contract package
|
|
// is allowed to do. See docs/contract.md.
|
|
const (
|
|
OperaStatusEnabled = "1"
|
|
OperaStatusDisabled = "2"
|
|
)
|