Documentation ¶
Index ¶
- type AccountController
- func (r *AccountController) GetAllUsers(ctx context.Context) ([]*dto.AccountDTO, error)
- func (r *AccountController) GetUserById(ctx context.Context, username string) (*dto.AccountDTO, error)
- func (r *AccountController) SaveUser(ctx context.Context, username string, employee *dto.AccountDTO) (resp.Response, error)
- type DemoCacheController
- type FeignController
- type IndexController
- type StaticController
- type WsHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountController ¶ added in v1.3.7
type AccountController struct { types.Controller `group:"/api/v1/users"` //statement as `controller`, use `group` tag as mapping prefix service.Factory `wire:"service_factory"` // contains filtered or unexported fields }
func (*AccountController) GetAllUsers ¶ added in v1.3.7
func (r *AccountController) GetAllUsers(ctx context.Context) ([]*dto.AccountDTO, error)
GetAllUsers associate with AccountController.getAllUsers
func (*AccountController) GetUserById ¶ added in v1.3.7
func (r *AccountController) GetUserById(ctx context.Context, username string) (*dto.AccountDTO, error)
GetUserById associate with AccountController.getUserById
type DemoCacheController ¶
type DemoCacheController struct { types.Controller `group:"/api/v1/cache"` service.Factory `wire:"service_factory"` // contains filtered or unexported fields }
func (*DemoCacheController) GetCache ¶
func (r *DemoCacheController) GetCache(key string) interface{}
func (*DemoCacheController) SaveCache ¶
func (r *DemoCacheController) SaveCache(key, value string) interface{}
type FeignController ¶ added in v1.4.2
type FeignController struct { types.Controller `group:"/feign"` feign.Factory `wire:"feign_factory"` // contains filtered or unexported fields }
func (*FeignController) GetUserById ¶ added in v1.4.2
func (h *FeignController) GetUserById(ctx context.Context, username string) (*dto.AccountDTO, error)
func (*FeignController) SaveUser ¶ added in v1.4.2
func (h *FeignController) SaveUser(ctx context.Context, username string, employee *dto.AccountDTO) (resp.Response, error)
func (*FeignController) TestGetAllUsers ¶ added in v1.4.2
func (h *FeignController) TestGetAllUsers() ([]*dto.AccountDTO, error)
type IndexController ¶
type IndexController struct { types.Controller `name:"IndexController" group:""` service.Factory `wire:"service_factory"` // contains filtered or unexported fields }
func (*IndexController) Index ¶
func (r *IndexController) Index() resp.Response
type StaticController ¶ added in v1.4.3
type StaticController struct { types.FsController `group:"/static" compile:"false"` // contains filtered or unexported fields }
func (*StaticController) Test ¶ added in v1.4.3
func (c *StaticController) Test() string
Click to show internal directories.
Click to hide internal directories.