You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OneAuth/api/org/init.go

20 lines
545 B
Go

// Copyright (C) 2024 veypi <i@veypi.com>
// 2025-03-04 16:08:06
// Distributed under terms of the MIT license.
package org
import "github.com/veypi/vigo"
var Router = vigo.NewRouter()
func init() {
Router.Get("/", "组织列表", list)
Router.Post("/", "创建组织", create)
Router.Get("/{org_id}", "获取组织详情", get)
Router.Patch("/{org_id}", "更新组织", patch)
Router.Delete("/{org_id}", "删除组织", del)
Router.Get("/tree", "组织树", tree)
Router.Get("/{org_id}/members", "组织成员列表", listMembers)
}