feat(models): add model for environments

This commit is contained in:
Mahyar Mirrashed
2025-03-13 11:43:00 -07:00
parent c04b97c689
commit 2ecc7424d9
+10 -4
View File
@@ -2,6 +2,12 @@ package api
import "time" import "time"
type Environment struct {
Name string `json:"name"`
Slug string `json:"slug"`
ID string `json:"id"`
}
// Stores info for login one // Stores info for login one
type LoginOneRequest struct { type LoginOneRequest struct {
Email string `json:"email"` Email string `json:"email"`
@@ -14,7 +20,6 @@ type LoginOneResponse struct {
} }
// Stores info for login two // Stores info for login two
type LoginTwoRequest struct { type LoginTwoRequest struct {
Email string `json:"email"` Email string `json:"email"`
ClientProof string `json:"clientProof"` ClientProof string `json:"clientProof"`
@@ -168,9 +173,10 @@ type Secret struct {
} }
type Project struct { type Project struct {
ID string `json:"id"` ID string `json:"id"`
Name string `json:"name"` Name string `json:"name"`
Slug string `json:"slug"` Slug string `json:"slug"`
Environments []Environment `json:"environments"`
} }
type RawSecret struct { type RawSecret struct {