others

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExampleEnhancedFeatures

func ExampleEnhancedFeatures()

ExampleEnhancedFeatures 展示增强功能的使用示例

func ExampleMigration

func ExampleMigration()

ExampleMigration 演示传统API向新API的迁移

func ExampleOptimizedAPI

func ExampleOptimizedAPI()

ExampleOptimizedAPI 演示新的优化API使用方式

Types

type PostResource

type PostResource struct{}

PostResource 实现资源化 CRUD

func (*PostResource) Create

func (p *PostResource) Create(c *gin.Context)

func (*PostResource) Delete

func (p *PostResource) Delete(c *gin.Context)

func (*PostResource) Index

func (p *PostResource) Index(c *gin.Context)

func (*PostResource) Show

func (p *PostResource) Show(c *gin.Context)

func (*PostResource) Update

func (p *PostResource) Update(c *gin.Context)

type UserResourceHandler

type UserResourceHandler struct{}

UserResourceHandler 实现ResourceHandler接口

func (*UserResourceHandler) Create

func (h *UserResourceHandler) Create(c *gin.Context)

func (*UserResourceHandler) Delete

func (h *UserResourceHandler) Delete(c *gin.Context)

func (*UserResourceHandler) Index

func (h *UserResourceHandler) Index(c *gin.Context)

func (*UserResourceHandler) Show

func (h *UserResourceHandler) Show(c *gin.Context)

func (*UserResourceHandler) Update

func (h *UserResourceHandler) Update(c *gin.Context)

Jump to

Keyboard shortcuts

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