mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 11:20:18 +08:00
fix: improve code specification (#231)
This commit is contained in:
@ -20,6 +20,7 @@ import (
|
||||
"github.com/casbin/casdoor/object"
|
||||
)
|
||||
|
||||
// GetOrganizations ...
|
||||
// @Title GetOrganizations
|
||||
// @Description get organizations
|
||||
// @Param owner query string true "owner"
|
||||
@ -32,6 +33,7 @@ func (c *ApiController) GetOrganizations() {
|
||||
c.ServeJSON()
|
||||
}
|
||||
|
||||
// GetOrganization ...
|
||||
// @Title GetOrganization
|
||||
// @Description get organization
|
||||
// @Param id query string true "organization id"
|
||||
@ -44,6 +46,7 @@ func (c *ApiController) GetOrganization() {
|
||||
c.ServeJSON()
|
||||
}
|
||||
|
||||
// UpdateOrganization ...
|
||||
// @Title UpdateOrganization
|
||||
// @Description update organization
|
||||
// @Param id query string true "The id of the organization"
|
||||
@ -63,6 +66,7 @@ func (c *ApiController) UpdateOrganization() {
|
||||
c.ServeJSON()
|
||||
}
|
||||
|
||||
// AddOrganization ...
|
||||
// @Title AddOrganization
|
||||
// @Description add organization
|
||||
// @Param body body object.Organization true "The details of the organization"
|
||||
@ -79,6 +83,7 @@ func (c *ApiController) AddOrganization() {
|
||||
c.ServeJSON()
|
||||
}
|
||||
|
||||
// DeleteOrganization ...
|
||||
// @Title DeleteOrganization
|
||||
// @Description delete organization
|
||||
// @Param body body object.Organization true "The details of the organization"
|
||||
|
Reference in New Issue
Block a user