示例#1
0
文件: org.go 项目: himanhimao/grafana
// PUT /api/orgs/:orgId
func UpdateOrg(c *middleware.Context, cmd m.UpdateOrgCommand) Response {
	cmd.OrgId = c.ParamsInt64(":orgId")
	return updateOrgHelper(cmd)
}
示例#2
0
文件: org.go 项目: himanhimao/grafana
// PUT /api/org
func UpdateOrgCurrent(c *middleware.Context, cmd m.UpdateOrgCommand) Response {
	cmd.OrgId = c.OrgId
	return updateOrgHelper(cmd)
}