func DeleteUser(c *gin.Context) {
	if uid, ok := c.Keys["uid"]; ok {
		query := map[string]interface{}{
			"id": uid,
		}
		user, err := service.DeletetUser(query)
		internal.APIResponse(c, err, user)
		return
	}
	internal.APIResponse(c, code.ErrToken, nil)
}
DeleteUser ...
@Summary DeleteUser
@Success 200 {object} internal.Response
@Router /api/v1/user [delete]
package api
import (
	"context"
	"fmt"
	"github.com/colinrs/ffly-plus/internal"
	"github.com/colinrs/ffly-plus/internal/code"
	"github.com/colinrs/ffly-plus/service"
	serverGin "github.com/colinrs/pkgx/server/gin"
	"github.com/gin-gonic/gin"
)
type UserController struct {
}
func GetUser(c *gin.Context) {
	if uid, ok := c.Keys["uid"]; ok {
		query := map[string]interface{}{
			"id": uid,
		}
		user, err := service.SelectUser(query)
		internal.APIResponse(c, err, user)
		return
	}
	internal.APIResponse(c, code.ErrToken, nil)
}
func EditUser(c *gin.Context) {
	if uid, ok := c.Keys["uid"]; ok {
		query := map[string]interface{}{
			"id": uid,
		}
		var updateService service.UserUpdateService
		err := c.ShouldBind(&updateService)
		if err != nil {
			internal.APIResponse(c, err, nil)
			return
		}
		user, err := updateService.UserUpdate(query)
		internal.APIResponse(c, err, user)
		return
	}
	internal.APIResponse(c, code.ErrToken, nil)
}