Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSecRequest ¶
func NewSecRequest() *model.SecRequest
Types ¶
type Service ¶
type Service interface { // HealthCheck check service health status HealthCheck() bool SecInfo(productId int) (date map[string]interface{}) SecKill(req *model.SecRequest) (map[string]interface{}, int, error) SecInfoList() ([]map[string]interface{}, int, error) }
Service Define a service interface
type ServiceMiddleware ¶
type SkAppService ¶
type SkAppService struct { }
UserService implement Service interface
func (SkAppService) HealthCheck ¶
func (s SkAppService) HealthCheck() bool
HealthCheck implement Service method 用于检查服务的健康状态,这里仅仅返回true
func (SkAppService) SecInfo ¶
func (s SkAppService) SecInfo(productId int) (date map[string]interface{})
func (SkAppService) SecInfoList ¶
func (s SkAppService) SecInfoList() ([]map[string]interface{}, int, error)
func (SkAppService) SecKill ¶
func (s SkAppService) SecKill(req *model.SecRequest) (map[string]interface{}, int, error)
Click to show internal directories.
Click to hide internal directories.