21 lines
451 B
Go
21 lines
451 B
Go
package handler
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
type BaseHandler interface {
|
|
// Create 创建
|
|
Create(c *gin.Context)
|
|
// DeleteByID 删除
|
|
DeleteByID(c *gin.Context)
|
|
// UpdateByID 更新
|
|
UpdateByID(c *gin.Context)
|
|
// GetByID 获取单个
|
|
GetByID(c *gin.Context)
|
|
// DeleteByIDs 批量删除
|
|
DeleteByIDs(c *gin.Context)
|
|
// GetByCondition 条件查询
|
|
GetByCondition(c *gin.Context)
|
|
// ListByIDs 批量查询
|
|
ListByIDs(c *gin.Context)
|
|
}
|