service

package
v0.1.20200821 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: GPL-3.0 Imports: 11 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 CompanyIdReq

type CompanyIdReq struct {
	CompanyId string `form:"company_id" json:"company_id,omitempty"`
}

根据公司ID查询

type NameSearchReq

type NameSearchReq struct {
	Name string `form:"name" json:"name,omitempty"`
	Page int    `form:"page" json:"page,omitempty"`
	Size int    `form:"size" json:"size,omitempty"`
}

根据公司名称或者老板名称查询

type PageDataRes

type PageDataRes struct {
	Page       int         `json:"page"`
	TotalPage  int         `json:"totalPage"`
	TotalCount int         `json:"totalCount"`
	Items      interface{} `json:"items"`
}

type Service

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

func NewService

func NewService(
	rds *redis.Client,
	mdb *gorm.DB,
	es *elastic.Client,
	runLog *logrus.Logger,
) *Service

func (*Service) CompanyDetail

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

func (*Service) CompanySearch

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

func (*Service) PersonSearch

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

Jump to

Keyboard shortcuts

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