feat:完善信息

This commit is contained in:
henry
2021-10-09 11:55:54 +08:00
parent 2191f0ea3f
commit af44287b4a
19 changed files with 368 additions and 12 deletions

View File

@ -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{}

View File

@ -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 {