-
-
Save alok87/a4fe13ef443ed1252da10eb65eb7ab23 to your computer and use it in GitHub Desktop.
api/v1/user.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package v1 | |
import ( | |
metav1 "github.com/alok87/config/internal/meta/v1" | |
) | |
type User struct { | |
metav1.ObjectMeta `json:",inline"` | |
Spec UserSpec `json:"spec,omitempty"` | |
} | |
type UserSpec struct { | |
HashedPassword string `json:"hashed_password,omitempty"` | |
Role string `json:"role,omitempty"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment