2019-09-02 18:58:51 +08:00
|
|
|
package modelInterface
|
2019-09-02 00:19:15 +08:00
|
|
|
|
2019-09-04 00:22:14 +08:00
|
|
|
// 因为我也不确定项目要不要多人维护 所以定义了CURD接口 作为接口参考
|
|
|
|
// 由于很多接口使用Restful模式 暂时不用泛型 有需要可以iss提供示例
|
2019-09-08 11:13:43 +08:00
|
|
|
|
|
|
|
type PageInfo struct {
|
|
|
|
Page int
|
|
|
|
PageSize int
|
|
|
|
}
|
|
|
|
|
|
|
|
//分页接口
|
|
|
|
type Paging interface {
|
|
|
|
GetInfoList(PageInfo) (err error, list interface{}, total int)
|
2019-09-02 00:19:15 +08:00
|
|
|
}
|