增加获取路由树功能

This commit is contained in:
pixelqm
2019-09-08 11:13:43 +08:00
parent 5fee629f66
commit 1b1ceefa27
19 changed files with 636 additions and 150 deletions

View File

@@ -2,9 +2,13 @@ package modelInterface
// 因为我也不确定项目要不要多人维护 所以定义了CURD接口 作为接口参考
// 由于很多接口使用Restful模式 暂时不用泛型 有需要可以iss提供示例
type CURD interface {
Create() (error, CURD)
Updata() (error, CURD)
Read() (error, CURD)
Delete() (error, CURD)
type PageInfo struct {
Page int
PageSize int
}
//分页接口
type Paging interface {
GetInfoList(PageInfo) (err error, list interface{}, total int)
}