module

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: LGPL-3.0 Imports: 3 Imported by: 0

README

模块应用示例

工具使用

生成Service

./gf gen service -s './module/hello/logic' -d './module/hello/service

注意事项

在写单例测试的时候,要注意引用相关的包,否则会出现错误

例如:task_test.go 文件的引用,需要引用如下包

	_ "github.com/gogf/gf/contrib/drivers/mysql/v2"
	_ "github.com/gogf/gf/contrib/nosql/redis/v2"
	_ "sagooiot/module/simcard/logic/sim"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NorthRouter

func NorthRouter(ctx context.Context, group *ghttp.RouterGroup)

NorthRouter 加载模块的北向路由

func OpenAPIRouter

func OpenAPIRouter(ctx context.Context, group *ghttp.RouterGroup)

OpenAPIRouter 加载模块的OpenAPI路由

func Router

func Router(ctx context.Context, group *ghttp.RouterGroup)

Router 加载模块的普通路由

func WorkerRun

func WorkerRun()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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