pet-ai/server/router/pet/pet_family_pets.go

29 lines
1.5 KiB
Go

package pet
import (
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
"github.com/gin-gonic/gin"
)
type PetFamilyPetsRouter struct{}
// InitPetFamilyPetsRouter 初始化 petFamilyPets表 路由信息
func (s *PetFamilyPetsRouter) InitPetFamilyPetsRouter(Router *gin.RouterGroup, PublicRouter *gin.RouterGroup) {
petFamilyPetsRouter := Router.Group("petFamilyPets").Use(middleware.OperationRecord())
petFamilyPetsRouterWithoutRecord := Router.Group("petFamilyPets")
petFamilyPetsRouterWithoutAuth := PublicRouter.Group("petFamilyPets")
{
petFamilyPetsRouter.POST("createPetFamilyPets", petFamilyPetsApi.CreatePetFamilyPets) // 新建petFamilyPets表
petFamilyPetsRouter.DELETE("deletePetFamilyPets", petFamilyPetsApi.DeletePetFamilyPets) // 删除petFamilyPets表
petFamilyPetsRouter.DELETE("deletePetFamilyPetsByIds", petFamilyPetsApi.DeletePetFamilyPetsByIds) // 批量删除petFamilyPets表
petFamilyPetsRouter.PUT("updatePetFamilyPets", petFamilyPetsApi.UpdatePetFamilyPets) // 更新petFamilyPets表
}
{
petFamilyPetsRouterWithoutRecord.GET("findPetFamilyPets", petFamilyPetsApi.FindPetFamilyPets) // 根据ID获取petFamilyPets表
petFamilyPetsRouterWithoutRecord.GET("getPetFamilyPetsList", petFamilyPetsApi.GetPetFamilyPetsList) // 获取petFamilyPets表列表
}
{
petFamilyPetsRouterWithoutAuth.GET("getPetFamilyPetsPublic", petFamilyPetsApi.GetPetFamilyPetsPublic) // petFamilyPets表开放接口
}
}