fmt
This commit is contained in:
parent
fba505130d
commit
7b07137b67
2 changed files with 7 additions and 7 deletions
|
@ -454,7 +454,7 @@ func (err ErrTeamAlreadyHasAccess) Error() string {
|
|||
// ErrUserIsMemberOfTeam represents an error where a user is already member of a team.
|
||||
type ErrUserIsMemberOfTeam struct {
|
||||
TeamID int64
|
||||
UserID int64
|
||||
UserID int64
|
||||
}
|
||||
|
||||
// IsErrUserIsMemberOfTeam checks if an error is ErrUserIsMemberOfTeam.
|
||||
|
@ -465,4 +465,4 @@ func IsErrUserIsMemberOfTeam(err error) bool {
|
|||
|
||||
func (err ErrUserIsMemberOfTeam) Error() string {
|
||||
return fmt.Sprintf("This user is already a member of that team. [Team ID: %d, User ID: %d]", err.TeamID, err.UserID)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,10 +37,10 @@ func (t *Team) AfterLoad() {
|
|||
|
||||
// TeamMember defines the relationship between a user and a team
|
||||
type TeamMember struct {
|
||||
ID int64 `xorm:"int(11) autoincr not null unique pk" json:"id"`
|
||||
TeamID int64 `xorm:"int(11) not null" json:"team_id" param:"team"`
|
||||
UserID int64 `xorm:"int(11) not null" json:"user_id" param:"user"`
|
||||
Admin bool `xorm:"tinyint(1)" json:"admin"`
|
||||
ID int64 `xorm:"int(11) autoincr not null unique pk" json:"id"`
|
||||
TeamID int64 `xorm:"int(11) not null" json:"team_id" param:"team"`
|
||||
UserID int64 `xorm:"int(11) not null" json:"user_id" param:"user"`
|
||||
Admin bool `xorm:"tinyint(1)" json:"admin"`
|
||||
|
||||
Created int64 `xorm:"created" json:"created"`
|
||||
Updated int64 `xorm:"updated" json:"updated"`
|
||||
|
@ -56,7 +56,7 @@ func (TeamMember) TableName() string {
|
|||
|
||||
// TeamUser is the team member type
|
||||
type TeamUser struct {
|
||||
User `xorm:"extends"`
|
||||
User `xorm:"extends"`
|
||||
Admin bool `json:"admin"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue