package owner

import (
	"wails-app/internal/api/v1/owner"

	"github.com/gin-gonic/gin"
)

// SetupOwnerRouter 车主相关路由
func SetupOwnerRouter(router *gin.RouterGroup) {
	ownerGroup := router.Group("/owner")
	{
		ownerGroup.POST("/create", owner.CreateOwner)
		ownerGroup.PUT("/update", owner.UpdateOwner)
		ownerGroup.GET("/get", owner.GetOwnerByID)
		ownerGroup.GET("/get-by-phone", owner.GetOwnerByPhone)
		ownerGroup.GET("/list", owner.ListOwners)
		ownerGroup.DELETE("/delete", owner.DeleteOwner)
	}
}
