mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:17:32 +00:00
fix: all enums same style (#262)
* fix: all enums same style * fix: rename process to reduce * add some missing enum renaming Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
@@ -31,17 +31,17 @@ type ProjectChange struct {
|
||||
type ProjectState int32
|
||||
|
||||
const (
|
||||
PROJECTSTATE_ACTIVE ProjectState = iota
|
||||
PROJECTSTATE_INACTIVE
|
||||
PROJECTSTATE_REMOVED
|
||||
ProjectStateActive ProjectState = iota
|
||||
ProjectStateInactive
|
||||
ProjectStateRemoved
|
||||
)
|
||||
|
||||
func NewProject(id string) *Project {
|
||||
return &Project{ObjectRoot: es_models.ObjectRoot{AggregateID: id}, State: PROJECTSTATE_ACTIVE}
|
||||
return &Project{ObjectRoot: es_models.ObjectRoot{AggregateID: id}, State: ProjectStateActive}
|
||||
}
|
||||
|
||||
func (p *Project) IsActive() bool {
|
||||
return p.State == PROJECTSTATE_ACTIVE
|
||||
return p.State == ProjectStateActive
|
||||
}
|
||||
|
||||
func (p *Project) IsValid() bool {
|
||||
|
Reference in New Issue
Block a user