Documentation
¶
Index ¶
- Constants
- func DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
- func ExportCsv(c echo.Context, v interface{}, name string) error
- func ExportData(c echo.Context, data []map[string]interface{}, sheet string) error
- func GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
- func GetCurrUser(c echo.Context) *models.SysOpr
- func GetCurrUserlevel(c echo.Context) string
- func ImportData(c echo.Context, sheet string) ([]map[string]interface{}, error)
- func Init()
- func Listen() error
- func POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
- func PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
- func PubOpLog(c echo.Context, message string)
- func ServerRecover(debug bool) echo.MiddlewareFunc
- type AdminServer
Constants ¶
View Source
const ConstCookieName = "teamsacs_cookie"
View Source
const UserSession = "teamsacs_user_session"
View Source
const UserSessionLevel = "teamsacs_user_session_level"
View Source
const UserSessionName = "teamsacs_user_session_name"
Variables ¶
This section is empty.
Functions ¶
func ExportData ¶
func GetCurrUser ¶
func GetCurrUserlevel ¶
func GetCurrUserlevel(c echo.Context) string
func ImportData ¶
ImportData 导入文件内容
Types ¶
type AdminServer ¶
type AdminServer struct {
// contains filtered or unexported fields
}
func (*AdminServer) ParseJwtToken ¶
func (s *AdminServer) ParseJwtToken(tokenstr string) (jwt.MapClaims, error)
ParseJwtToken 解析 Jwt Token
func (*AdminServer) WrapJwtHandler ¶
func (s *AdminServer) WrapJwtHandler(h http.Handler) echo.HandlerFunc
Click to show internal directories.
Click to hide internal directories.