mirror of https://github.com/rocboss/paopao-ce
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.
23 lines
570 B
23 lines
570 B
// Copyright 2023 ROC. All rights reserved.
|
|
// Use of this source code is governed by a MIT style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Package joint provider some common base type or logic for model define.
|
|
|
|
package joint
|
|
|
|
type BasePageInfo struct {
|
|
Page int `form:"-" binding:"-"`
|
|
PageSize int `form:"-" binding:"-"`
|
|
}
|
|
|
|
func (r *BasePageInfo) SetPageInfo(page int, pageSize int) {
|
|
r.Page, r.PageSize = page, pageSize
|
|
}
|
|
|
|
type JsonResp struct {
|
|
Code int `json:"code"`
|
|
Msg string `json:"msg,omitempty"`
|
|
Data any `json:"data,omitempty"`
|
|
}
|