Documentation ¶
Index ¶
- func AssignIdentity(tangentID string, userID string, identification uint8) error
- func ChangeIdentity(tangentID string, userID string, identification uint8) error
- func ClearIdentity(tangentID string, userID string) error
- func DeletePoster(posterID string) error
- func DeleteQrPoster(qrPosterID string) error
- func Destroy()
- func DriverScanQr(params *DriverScanQrParams) error
- func EpidemicQuery() (bool, bool, error)
- func GenerateCarQrPoster(params GenerateCarQrPosterParams) (string, error)
- func GenerateStationQrPoster(params *GenerateStationQrPosterParams) (string, error)
- func Init(baseUrl string, timeoutSec time.Duration)
- func PassengerScanQr(params *PassengerScanQrParams) error
- func SavePoster(name string, objName string) error
- func UpdatePoster(id string, objName string, name string) error
- func UpdateQrPoster(tangentID string, id string, plateNumber string, originPlace string, ...) error
- func UploadDriverNucleicAcid(photo *multipart.FileHeader) (string, string, error)
- func UploadPassengerNucleicAcid(photo *multipart.FileHeader) (string, string, error)
- func UploadPoster(poster *multipart.FileHeader) (string, string, error)
- func UploadSuperviseDisinfectPhoto(photo *multipart.FileHeader, watermark string) (string, string, error)
- func UploadWorkerNucleicAcid(photo *multipart.FileHeader) (string, string, error)
- func WorkerScanQr(params *WorkerScanQrParams) error
- type AssignIdentityRequest
- type CarRecordInfo
- type ChangeIdentityRequest
- type ClearIdentityRequest
- type DriverScanQrParams
- type DriverScanQrRecordInfo
- type DriverScanQrRequest
- type EpidemicQueryResponse
- type GenerateCarQrPosterParams
- type GenerateCarQrPosterRequest
- type GenerateCarQrPosterResponse
- type GenerateStationQrPosterParams
- type GenerateStationQrPosterRequest
- type GenerateStationQrPosterResponse
- type GetCarRecordResponse
- type GetDriverScanQrRecordResponse
- type GetPassengerScanQrRecordResponse
- type GetPosterResponse
- type GetQrPosterResponse
- type GetQrPostersResponse
- type GetTencentAddrResponse
- type GetUserIdentityQuery
- type GetUserIdentityResponse
- type GetWorkerScanQrRecordResponse
- type IdentityInfo
- type PassengerScanQrParams
- type PassengerScanQrRecordInfo
- type PassengerScanQrRequest
- type PicInfo
- type PosterInfo
- type QrPosterInfo
- type SavePosterRequest
- type UpdatePosterRequest
- type UpdateQrPosterRequest
- type UploadNucleicAcidRequest
- type UploadNucleicAcidResponse
- type UploadPosterRequest
- type UploadPosterResponse
- type UploadSuperviseDisinfectPhotoResponse
- type WorkerScanQrParams
- type WorkerScanQrRecordInfo
- type WorkerScanQrRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignIdentity ¶
func ChangeIdentity ¶
func ClearIdentity ¶
func DeletePoster ¶
func DeleteQrPoster ¶
func DriverScanQr ¶
func DriverScanQr(params *DriverScanQrParams) error
func EpidemicQuery ¶
func GenerateCarQrPoster ¶
func GenerateCarQrPoster(params GenerateCarQrPosterParams) (string, error)
func GenerateStationQrPoster ¶
func GenerateStationQrPoster(params *GenerateStationQrPosterParams) (string, error)
func PassengerScanQr ¶
func PassengerScanQr(params *PassengerScanQrParams) error
func SavePoster ¶
func UpdateQrPoster ¶
func UploadDriverNucleicAcid ¶
func UploadDriverNucleicAcid(photo *multipart.FileHeader) (string, string, error)
func UploadPassengerNucleicAcid ¶
func UploadPassengerNucleicAcid(photo *multipart.FileHeader) (string, string, error)
func UploadPoster ¶
func UploadPoster(poster *multipart.FileHeader) (string, string, error)
func UploadWorkerNucleicAcid ¶
func UploadWorkerNucleicAcid(photo *multipart.FileHeader) (string, string, error)
func WorkerScanQr ¶
func WorkerScanQr(params *WorkerScanQrParams) error
Types ¶
type AssignIdentityRequest ¶
type CarRecordInfo ¶
type ChangeIdentityRequest ¶
type ClearIdentityRequest ¶
type DriverScanQrParams ¶
type DriverScanQrParams struct { Name string IDCard string Phone string UserID string PlateNumber string OriginPlace string Address string Longitude float64 Latitude float64 QrID string Terminus string Temperature float64 CompanyID string CompanyName string WearMask bool OutsideProvinceSojournHistory bool BeenEpidemicArea bool SuperviseDisinfectName string SuperviseDisinfectPhoto string YunCheng bool NucleicAcids []string }
type DriverScanQrRecordInfo ¶
type DriverScanQrRecordInfo struct { ID string `json:"id"` Name string `json:"name"` IDCard string `json:"idCard"` Phone string `json:"phone"` UserID string `json:"userId"` PlateNumber string `json:"plateNumber"` OriginPlace string `json:"originPlace"` Terminus string `json:"terminus"` Address string `json:"address"` Longitude float64 `json:"longitude"` Latitude float64 `json:"latitude"` ScanTime string `json:"scanTime"` Temperature float64 `json:"temperature"` CompanyID string `json:"companyId"` CompanyName string `json:"companyName"` WearMask bool `json:"wearMask"` OutsideProvinceSojournHistory bool `json:"outsideProvinceSojournHistory"` BeenEpidemicArea bool `json:"beenEpidemicArea"` SuperviseDisinfectName string `json:"superviseDisinfectName"` SuperviseDisinfectPhoto *PicInfo `json:"superviseDisinfectPhoto"` YunCheng bool `json:"yunCheng"` NucleicAcids []PicInfo `json:"nucleicAcids"` ScanType uint8 `json:"scanType"` }
type DriverScanQrRequest ¶
type DriverScanQrRequest struct { Name string `json:"name" binding:"required"` IDCard string `json:"idCard" binding:"required"` Phone string `json:"phone" binding:"required"` UserID string `json:"userId" binding:"required"` PlateNumber string `json:"plateNumber" binding:"required"` OriginPlace string `json:"originPlace" binding:"required"` Address string `json:"address" binding:"required"` Longitude float64 `json:"longitude" binding:"required"` Latitude float64 `json:"latitude" binding:"required"` QrID string `json:"qrId" binding:"required"` Terminus string `json:"terminus" binding:"required"` Temperature float64 `json:"temperature" binding:"required"` CompanyID string `json:"companyId" binding:"required"` CompanyName string `json:"companyName" binding:"required"` WearMask bool `json:"wearMask" binding:"required"` OutsideProvinceSojournHistory bool `json:"outsideProvinceSojournHistory" binding:"required"` BeenEpidemicArea bool `json:"beenEpidemicArea" binding:"required"` SuperviseDisinfectName string `json:"superviseDisinfectName" binding:"required"` SuperviseDisinfectPhoto string `json:"superviseDisinfectPhoto" binding:"required"` YunCheng bool `json:"yunCheng" binding:"required"` NucleicAcids []string `json:"nucleicAcids"` }
type EpidemicQueryResponse ¶
type GenerateCarQrPosterRequest ¶
type GenerateCarQrPosterRequest struct { TangentID string `json:"tangentId"` AppID string `json:"appId"` AppSecret string `json:"appSecret"` Page string `json:"page"` PosterID string `json:"posterId"` PlateNumber string `json:"plateNumber"` OriginPlace string `json:"originPlace"` Terminus string `json:"terminus"` }
type GenerateCarQrPosterResponse ¶
type GenerateCarQrPosterResponse struct { Url string `json:"url"` // contains filtered or unexported fields }
type GenerateStationQrPosterResponse ¶
type GenerateStationQrPosterResponse struct { Url string `json:"url"` // contains filtered or unexported fields }
type GetCarRecordResponse ¶
type GetCarRecordResponse struct { Infos []CarRecordInfo `json:"infos"` TotalCount int64 `json:"totalCount"` PageNo int `json:"pageNo"` // contains filtered or unexported fields }
type GetDriverScanQrRecordResponse ¶
type GetDriverScanQrRecordResponse struct { Infos []DriverScanQrRecordInfo `json:"infos"` TotalCount int64 `json:"totalCount"` PageNo int `json:"pageNo"` // contains filtered or unexported fields }
type GetPassengerScanQrRecordResponse ¶
type GetPassengerScanQrRecordResponse struct { Infos []PassengerScanQrRecordInfo `json:"infos"` TotalCount int64 `json:"totalCount"` PageNo int `json:"pageNo"` // contains filtered or unexported fields }
type GetPosterResponse ¶
type GetPosterResponse struct { Infos []PosterInfo `json:"infos"` TotalCount int64 `json:"totalCount"` PageNo int `json:"pageNo"` // contains filtered or unexported fields }
type GetQrPosterResponse ¶
type GetQrPosterResponse struct { Info *QrPosterInfo `json:"info"` // contains filtered or unexported fields }
type GetQrPostersResponse ¶
type GetQrPostersResponse struct { Infos []QrPosterInfo `json:"infos"` TotalCount int64 `json:"totalCount"` PageNo int `json:"pageNo"` // contains filtered or unexported fields }
type GetTencentAddrResponse ¶
type GetTencentAddrResponse struct { Address string `json:"address"` // contains filtered or unexported fields }
type GetUserIdentityQuery ¶
type GetUserIdentityResponse ¶
type GetUserIdentityResponse struct { Infos []IdentityInfo `json:"infos"` // contains filtered or unexported fields }
type GetWorkerScanQrRecordResponse ¶
type GetWorkerScanQrRecordResponse struct { Infos []WorkerScanQrRecordInfo `json:"infos"` TotalCount int64 `json:"totalCount"` PageNo int `json:"pageNo"` // contains filtered or unexported fields }
type IdentityInfo ¶
type IdentityInfo struct { Identification uint8 `json:"identification"` Primary bool `json:"primary"` }
func GetUserIdentity ¶
func GetUserIdentity(tangentID string, userID string) ([]IdentityInfo, error)
type PassengerScanQrParams ¶
type PassengerScanQrParams struct { Name string IDCard string UserID string Phone string Temperature float64 QrID string Address string Longitude float64 Latitude float64 WithChild string WithOld string WearMask bool OutsideProvinceSojournHistory bool BeenEpidemicArea bool YunCheng bool NucleicAcids []string }
type PassengerScanQrRecordInfo ¶
type PassengerScanQrRecordInfo struct { ID string `json:"id"` Name string `json:"name"` IDCard string `json:"IDCard"` Phone string `json:"phone"` Temperature float64 `json:"temperature"` Address string `json:"address"` Longitude float64 `json:"longitude"` Latitude float64 `json:"latitude"` WithChild string `json:"withChild"` WithOld string `json:"withOld"` ScanTime string `json:"scanTime"` WearMask bool `json:"wearMask"` OutsideProvinceSojournHistory bool `json:"outsideProvinceSojournHistory"` BeenEpidemicArea bool `json:"beenEpidemicArea"` YunCheng bool `json:"yunCheng"` NucleicAcids []PicInfo `json:"nucleicAcids"` ScanType uint8 `json:"scanType"` }
type PassengerScanQrRequest ¶
type PassengerScanQrRequest struct { Name string `json:"name" binding:"required"` IDCard string `json:"idCard" binding:"required"` Phone string `json:"phone" binding:"required"` UserID string `json:"userId"` Temperature float64 `json:"temperature" binding:"required"` QrID string `json:"qrId" binding:"required"` Address string `json:"address" binding:"required"` Longitude float64 `json:"longitude" binding:"required"` Latitude float64 `json:"latitude" binding:"required"` WithChild string `json:"withChild" binding:"required"` WithOld string `json:"withOld" binding:"required"` WearMask bool `json:"wearMask" binding:"required"` OutsideProvinceSojournHistory bool `json:"outsideProvinceSojournHistory" binding:"required"` BeenEpidemicArea bool `json:"beenEpidemicArea" binding:"required"` YunCheng bool `json:"yunCheng" binding:"required"` NucleicAcids []string `json:"nucleicAcids" binding:"required"` }
type PosterInfo ¶
type QrPosterInfo ¶
type QrPosterInfo struct { ID string `json:"id"` Type uint8 `json:"type"` PlateNumber string `json:"plateNumber"` OriginPlace string `json:"originPlace"` Terminus string `json:"terminus"` StationName string `json:"stationName"` PosterID string `json:"posterId"` Url string `json:"url"` TangentID string `json:"tangentId"` }
func GetQrPoster ¶
func GetQrPoster(id string) (*QrPosterInfo, error)
func GetQrPosters ¶
type SavePosterRequest ¶
type UpdatePosterRequest ¶
type UpdateQrPosterRequest ¶
type UploadNucleicAcidRequest ¶
type UploadNucleicAcidRequest struct {
Photo *multipart.FileHeader `form:"photo"`
}
type UploadPosterRequest ¶
type UploadPosterRequest struct {
Poster *multipart.FileHeader `form:"poster"`
}
type UploadPosterResponse ¶
type WorkerScanQrParams ¶
type WorkerScanQrRecordInfo ¶
type WorkerScanQrRecordInfo struct { ID string `json:"id"` Name string `json:"name"` Phone string `json:"phone"` IDCard string `json:"idCard"` Temperature float64 `json:"temperature"` StationName string `json:"stationName"` Address string `json:"address"` Longitude float64 `json:"longitude"` Latitude float64 `json:"latitude"` ScanTime string `json:"scanTime"` YunCheng bool `json:"yunCheng"` WearMask bool `json:"wearMask"` OutsideProvinceSojournHistory bool `json:"outsideProvinceSojournHistory"` BeenEpidemicArea bool `json:"beenEpidemicArea"` NucleicAcids []PicInfo `json:"nucleicAcids"` ScanType uint8 `json:"scanType"` OnDuty bool `json:"onDuty"` }
type WorkerScanQrRequest ¶
type WorkerScanQrRequest struct { Name string `json:"name"` Phone string `json:"phone"` UserID string `json:"userId"` IDCard string `json:"idCard"` Temperature float64 `json:"temperature"` Address string `json:"address"` Longitude float64 `json:"longitude"` Latitude float64 `json:"latitude"` YunCheng bool `json:"yunCheng"` QrID string `json:"qrId"` WearMask bool `json:"wearMask"` OutsideProvinceSojournHistory bool `json:"outsideProvinceSojournHistory"` BeenEpidemicArea bool `json:"beenEpidemicArea"` NucleicAcids []string `json:"nucleicAcids"` OnDuty bool `json:"onDuty"` }
Click to show internal directories.
Click to hide internal directories.