Skip to content

Commit

Permalink
新版本发布 解决单条数据查看以及超长问题
Browse files Browse the repository at this point in the history
  • Loading branch information
23233 committed Jul 9, 2020
1 parent 7322797 commit a81d766
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions bindata.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions simple_admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ func (lib *SpAdmin) Pagination(routerName string, page int) (PagResult, error) {
}

// 单条数据获取
func (lib *SpAdmin) SingleData(routerName string, id uint64) (map[string]string, error) {
var valuesMap = make(map[string]string)
func (lib *SpAdmin) SingleData(routerName string, id uint64) (map[string]interface{}, error) {
var valuesMap = make(map[string]interface{})
has, err := lib.config.Engine.Table(routerName).Where("id = ?", id).Get(&valuesMap)
if err != nil {
return valuesMap, err
Expand Down

0 comments on commit a81d766

Please sign in to comment.