Giter VIP home page Giter VIP logo

yuxingfei / beego-admin Goto Github PK

View Code? Open in Web Editor NEW
111.0 3.0 50.0 31.36 MB

基于beego v2.0.1框架和AdminLte前端框架,开发的go语言通用后台系统,在beego v2.0.1框架的基础上,封装了后台系统的分页功能,excel数据导出功能等丰富常用的扩展,MVC模式,使用原生的html原生作为前端显示,更加的灵活自由。beego-admin v2.0.1通用的后台系统真正的做到了开箱即用,欢迎大家使用。

Go 57.18% CSS 12.61% HTML 23.25% Smarty 6.96%
beego-admin beego admin go goadmin golang

beego-admin's Issues

分页计算的一个小问题

pagination.go
64行
pagination.LastPage = int(math.Ceil(float64(float64(pagination.Total) / float64(pagination.ListRows))))

求助db Migration的问题

项目现有的表结构不够,需要添加两张表,创建对应的model/controller。
表migrations的定义好像不太一样,请问楼主项目中的sql是php项目github.com/yuxingfei/laravel-admin 迁移过来的吗?

因对beego这个框架不熟,看了一下readme中没有找到相关的命令,
请问楼主是否可以提供一下项目中进行db migration 的例子,或者请教一下具体的步骤,谢谢。

base.go 中全局变量会有并发问题

var (
	//后台变量
	admin map[string]interface{}
	//当前用户
	loginUser models.AdminUser
	//参数
	gQueryParams url.Values
)

并发下修改map全局变量会造成程序fatal error: concurrent map writes

部分接口存在安全问题

在修改角色昵称时使用的id是用的前端上传的,
用户可以更改id达到强登超级管理员的账号

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.