mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-08-26 01:21:38 +02:00
* Use a standalone struct name for Organization * recover unnecessary change * make the code readable * Fix template failure * Fix template failure * Move HasMemberWithUserID to org * Fix test * Remove unnecessary user type check * Fix test Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
16 lines
365 B
Go
16 lines
365 B
Go
// Copyright 2016 The Gogs Authors. All rights reserved.
|
|
// Use of this source code is governed by a MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package context
|
|
|
|
import (
|
|
"code.gitea.io/gitea/models"
|
|
)
|
|
|
|
// APIOrganization contains organization and team
|
|
type APIOrganization struct {
|
|
Organization *models.Organization
|
|
Team *models.Team
|
|
}
|