Documentation ¶
Index ¶
- func NewProjectAPI(ctx context.Context, opt *Options) (_ project.ProjectAPIServer, err error)
- func ProjectMemberProto(db *ProjectMember) (*project.ProjectMember, error)
- func ProjectProto(db *Project) (*project.Project, error)
- func ValidateProject(pb *project.Project) error
- func ValidateProjectMember(pb *project.ProjectMember) error
- type Options
- type Project
- type ProjectMember
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProjectAPI ¶
func ProjectMemberProto ¶
func ProjectMemberProto(db *ProjectMember) (*project.ProjectMember, error)
func ValidateProject ¶
func ValidateProjectMember ¶
func ValidateProjectMember(pb *project.ProjectMember) error
Types ¶
type Project ¶
type Project struct { ID uint `gorm:"primaryKey;autoIncrement"` OwnerId string `gorm:"index;type:varchar(50);not null"` OwnerEmail string `gorm:"type:varchar(50)"` OwnerNames string `gorm:"type:varchar(50)"` ProjectName string `gorm:"type:varchar(50);not null"` Description string `gorm:"type:varchar(150);"` Status string `gorm:"index;type:varchar(50)"` Scopes []byte `gorm:"type:json"` CreatedAt time.Time `gorm:"autoCreateTime;->;<-:create;not null;type:datetime(6)"` UpdatedAt time.Time `gorm:"autoUpdateTime;<-;type:datetime(6)"` DeletedAt gorm.DeletedAt }
type ProjectMember ¶
type ProjectMember struct { ID uint `gorm:"primaryKey;autoIncrement"` UserId string `gorm:"index;type:varchar(50);not null"` ProjectId string `gorm:"index;type:varchar(50);not null"` Status string `gorm:"index;type:varchar(50)"` Scopes []byte `gorm:"type:json"` CreatedAt time.Time `gorm:"autoCreateTime;->;<-:create;not null;type:datetime(6)"` UpdatedAt time.Time `gorm:"autoUpdateTime;<-;type:datetime(6)"` DeletedAt gorm.DeletedAt }
func ProjectMemberModel ¶
func ProjectMemberModel(pb *project.ProjectMember) (*ProjectMember, error)
func (*ProjectMember) TableName ¶
func (*ProjectMember) TableName() string
Click to show internal directories.
Click to hide internal directories.