service

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicRes

type BasicRes struct {
	Code    int         `form:"code" json:"code"`
	Message string      `form:"message" json:"message"`
	Data    interface{} `form:"data" json:"data"`
}

type DistinctReq

type DistinctReq struct {
	Business string `form:"business"`
	Key      string `form:"key"`
}

type EchoReq

type EchoReq struct {
	Message string `form:"message"`
}

type EchoRes

type EchoRes struct {
	Message string `form:"message" json:"message"`
}

type MobileInfo

type MobileInfo struct {
	Province string `form:"province" json:"province"`
	City     string `form:"city" json:"city"`
	Operator string `form:"operator" json:"operator"`
	PostCode string `form:"post_code" json:"post_code"`
	AreaCode string `form:"area_code" json:"area_code"`
}

type MobileReq

type MobileReq struct {
	Mobile string `form:"mobile"`
}

type Service

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

func NewService

func NewService(
	rds *redis.Client,
	runLog *logrus.Logger,
) *Service

func (*Service) Distinct

func (s *Service) Distinct(c *gin.Context)

func (*Service) Echo

func (s *Service) Echo(c *gin.Context)

func (*Service) Location

func (s *Service) Location(c *gin.Context)

Jump to

Keyboard shortcuts

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