feat: create user, read users, batch delete users

This commit is contained in:
naiba
2024-10-22 21:19:30 +08:00
parent 73e3e4f3a1
commit 387da11f1b
7 changed files with 107 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ import (
// @Produce json
// @Success 200 {object} model.CommonResponse[any]
// @Router /ddns [post]
func newDDNS(c *gin.Context) error {
func createDDNS(c *gin.Context) error {
var df model.DDNSForm
var p model.DDNSProfile
@@ -86,7 +86,7 @@ func newDDNS(c *gin.Context) error {
// @Produce json
// @Success 200 {object} model.CommonResponse[any]
// @Router /ddns/{id} [patch]
func editDDNS(c *gin.Context) error {
func updateDDNS(c *gin.Context) error {
idStr := c.Param("id")
id, err := strconv.ParseUint(idStr, 10, 64)