Documentation
¶
Index ¶
- Constants
- Variables
- func All(path string, handlers ...fiber.Handler) fiber.Router
- func Delete(path string, handlers ...fiber.Handler) fiber.Router
- func Get(path string, handlers ...fiber.Handler) fiber.Router
- func Group(path string, handlers ...fiber.Handler) fiber.Router
- func InitWebApp(views fiber.Views) *webApp
- func Listener(ln net.Listener) error
- func ParsePaginationInfoFromQuery(ctx *fiber.Ctx) (limit, offset int, orderBy string, err error)
- func Post(path string, handlers ...fiber.Handler) fiber.Router
- func Put(path string, handlers ...fiber.Handler) fiber.Router
- func Shutdown() error
- func Start() error
- func Static(dir string)
- func Use(args ...interface{}) fiber.Router
- type CommonResponse
- type Paginate
- type TimeCondition
Constants ¶
View Source
const ( ResponseCodeUnknownError = -10000 - iota ResponseCodeParamParseError ResponseCodeParamNotEnough ResponseCodePasswordStrengthInvalid ResponseCodeDuplicated ResponseCodeDatabase ResponseCodeDataNotExists ResponseCodeDataNotMatch ResponseCodeModuleNotExists ResponseCodeGeneration )
Variables ¶
View Source
var ( ResponseMsgUnknownError = "系统错误" ResponseMsgParamParseError = "参数解析失败" ResponseMsgParamNotEnough = "参数不足" ResponseMsgPasswordStrengthInvalid = "密码强度不够" ResponseMsgDuplicated = "数据重复" ResponseMsgDatabase = "执行数据库语句失败" ResponseMsgDataNotExists = "数据不存在" ResponseMsgDataNotMatch = "数据不匹配" ResponseMsgModuleNotExists = "模块不存在" ResponseMsgGeneration = "生成信息失败" )
Functions ¶
func InitWebApp ¶
func ParsePaginationInfoFromQuery ¶ added in v0.1.1
Types ¶
type CommonResponse ¶
Click to show internal directories.
Click to hide internal directories.