mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
c65331df1a
* fix: project events * fix: project events * fix: project events * fix: eventmapper * fix: project commands * fix: project role commands * fix: project command side * fix: oidc application * fix: oidc application * fix: reduce * fix: reduce * fix: project member * fix: project grant command side * fix: application command side * fix: project grant member remove * Update internal/v2/command/project.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * Update internal/v2/command/project.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * Update internal/v2/command/project_application.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * Update internal/v2/command/project_application.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * Update internal/v2/command/project_application.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * fix: oidc application string pw * fix: project events * fix: project grant member * feat: change application to interface Co-authored-by: Livio Amstutz <livio.a@gmail.com>
35 lines
504 B
Go
35 lines
504 B
Go
package domain
|
|
|
|
type Application interface {
|
|
GetAppID() string
|
|
GetApplicationName() string
|
|
GetState() AppState
|
|
}
|
|
|
|
type AppState int32
|
|
|
|
const (
|
|
AppStateUnspecified AppState = iota
|
|
AppStateActive
|
|
AppStateInactive
|
|
AppStateRemoved
|
|
)
|
|
|
|
type ChangeApp struct {
|
|
AppID string
|
|
AppName string
|
|
State AppState
|
|
}
|
|
|
|
func (a *ChangeApp) GetAppID() string {
|
|
return a.AppID
|
|
}
|
|
|
|
func (a *ChangeApp) GetApplicationName() string {
|
|
return a.AppName
|
|
}
|
|
|
|
func (a *ChangeApp) GetState() AppState {
|
|
return a.State
|
|
}
|