mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
feat: create user, read users, batch delete users
This commit is contained in:
@@ -64,7 +64,7 @@ func listServerGroup(c *gin.Context) error {
|
||||
// @Produce json
|
||||
// @Success 200 {object} model.CommonResponse[any]
|
||||
// @Router /server-group [post]
|
||||
func newServerGroup(c *gin.Context) error {
|
||||
func createServerGroup(c *gin.Context) error {
|
||||
var sgf model.ServerGroupForm
|
||||
if err := c.ShouldBindJSON(&sgf); err != nil {
|
||||
return err
|
||||
@@ -114,7 +114,7 @@ func newServerGroup(c *gin.Context) error {
|
||||
// @Produce json
|
||||
// @Success 200 {object} model.CommonResponse[any]
|
||||
// @Router /server-group/{id} [patch]
|
||||
func editServerGroup(c *gin.Context) error {
|
||||
func updateServerGroup(c *gin.Context) error {
|
||||
id := c.Param("id")
|
||||
var sg model.ServerGroupForm
|
||||
if err := c.ShouldBindJSON(&sg); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user