Documentation
¶
Index ¶
- func Register(r *gin.Engine) error
- type DemoApi
- func (api *DemoApi) SubjectDelController(c *gin.Context)
- func (api *DemoApi) SubjectInfoNameController(c *gin.Context)
- func (api *DemoApi) SubjectListController(c *gin.Context)
- func (api *DemoApi) SubjectPostController(c *gin.Context)
- func (api *DemoApi) SubjectPutController(c *gin.Context)
- func (api *DemoApi) Test(c *gin.Context)
- func (api *DemoApi) UserLoginController(c *gin.Context)
- type Repository
- type Service
- type SubjectModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DemoApi ¶
type DemoApi struct {
// contains filtered or unexported fields
}
func NewDemoApi ¶
func NewDemoApi() *DemoApi
func (*DemoApi) SubjectDelController ¶
func (*DemoApi) SubjectInfoNameController ¶
func (*DemoApi) SubjectListController ¶
func (*DemoApi) SubjectPostController ¶
func (*DemoApi) SubjectPutController ¶
func (*DemoApi) UserLoginController ¶
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 ¶
type SubjectModel ¶
Click to show internal directories.
Click to hide internal directories.