You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
322 B
16 lines
322 B
|
1 year ago
|
package generalmethod
|
||
|
|
|
||
|
|
// 泛型基础变量类型
|
||
|
|
type GenericityVariable interface {
|
||
|
|
int | int8 | int16 | int32 | int64 | float32 | float64 | string
|
||
|
|
}
|
||
|
|
type CommonId[T GenericityVariable] struct {
|
||
|
|
Id T `json:"id"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// 翻页信息
|
||
|
|
type PagesTurn struct {
|
||
|
|
Page int `json:"page"`
|
||
|
|
PageSize int `json:"pagesize"`
|
||
|
|
}
|