feat:完善信息
This commit is contained in:
@ -16,9 +16,8 @@ func (c *Platform) Format() string {
|
||||
|
||||
// ReturnPages 分页数据
|
||||
type ReturnPages struct {
|
||||
Page int `json:"page"`
|
||||
Data interface{} `json:"data"`
|
||||
TotalCount int64 `json:"total_count"`
|
||||
Data interface{} `json:"data"`
|
||||
Count int64 `json:"count"`
|
||||
}
|
||||
|
||||
type Key struct{}
|
||||
|
@ -31,7 +31,7 @@ func (c *Config) Config(kind, page, pageSize int) (*ReturnPages, error) {
|
||||
if err := model2.Pages(mSysConfig.SysConfig, &out, page, pageSize, &count, where...); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &ReturnPages{Data: out, Page: page, TotalCount: count}, nil
|
||||
return &ReturnPages{Data: out, Count: count}, nil
|
||||
}
|
||||
|
||||
func (c *Config) Form(params map[string]interface{}) error {
|
||||
|
Reference in New Issue
Block a user