demo

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(r *gin.Engine) error

Types

type DemoApi

type DemoApi struct {
	// contains filtered or unexported fields
}

func NewDemoApi

func NewDemoApi() *DemoApi

func (*DemoApi) SubjectDelController

func (api *DemoApi) SubjectDelController(c *gin.Context)

func (*DemoApi) SubjectInfoNameController

func (api *DemoApi) SubjectInfoNameController(c *gin.Context)

func (*DemoApi) SubjectListController

func (api *DemoApi) SubjectListController(c *gin.Context)

func (*DemoApi) SubjectPostController

func (api *DemoApi) SubjectPostController(c *gin.Context)

func (*DemoApi) SubjectPutController

func (api *DemoApi) SubjectPutController(c *gin.Context)

func (*DemoApi) Test

func (api *DemoApi) Test(c *gin.Context)

func (*DemoApi) UserLoginController

func (api *DemoApi) UserLoginController(c *gin.Context)

type Repository

type Repository struct {
}

func NewRepository

func NewRepository() *Repository

func (*Repository) GetSubjectInfo

func (repo *Repository) GetSubjectInfo() *SubjectModel

type Service

type Service struct {
}

func NewService

func NewService() *Service

func (*Service) GetSubjectInfoName

func (s *Service) GetSubjectInfoName() string

type SubjectModel

type SubjectModel struct {
	ID    int
	Name  string
	Intro string
}

Jump to

Keyboard shortcuts

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