gfrestful

package module
v0.0.0-...-7ad3450 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2021 License: MIT Imports: 5 Imported by: 0

README

基于GoFrame框架开发的RESTFul api,实现了日志记录,sql语句打印,链路追踪。实现了数据的增、删、改、查(分页)。

用法 修改config.toml.example 为 config.toml,配置数据库信息,监听端口

启动服务 go run cmd/server/main.go

cmd/client/main.go 中演示了增删改查(分页)的 各种用法

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(r *ghttp.Request)

func Insert

func Insert(r *ghttp.Request)

func Run

func Run()

func Select

func Select(r *ghttp.Request)

分页查

func SelectById

func SelectById(r *ghttp.Request)

通过ID查询

func Update

func Update(r *ghttp.Request)

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL