Documentation ¶
Index ¶
- func BindUnTangentInterviewee(tangentID string, userID string) error
- func CreateCarbonFootprintLog(params *CreateCarbonFootprintLogRequest) (string, error)
- func CreateVisitRecord(params *CreateVisitRecordRequest) (string, error)
- func DeleteCarbonFootprintLog(id string) error
- func Destroy()
- func GetCarbonFootprintLog(params *GetCarbonFootprintLogQuery) (*Energy, []CarbonFootprintLogInfo, int64, error)
- func GetMemberCurrentDay(params *GetCommuteQuery) (int, *CheckinInfo, *SummaryInfo, error)
- func GetTangentInterviewee(tangentID string, pageNo int, pageSize int) ([]string, int64, error)
- func Init(baseUrl string, timeoutSec time.Duration)
- func PunchClock(params *CreateCommuteRequest) (string, error)
- type BackgroundInfo
- type BindUnIntervieweeRequest
- type CarbonFootprintLogInfo
- type CheckinInfo
- type CommuteInfo
- type CreateCarbonFootprintLogRequest
- type CreateCarbonFootprintLogResponse
- type CreateCommuteRequest
- type CreateCommuteResponse
- type CreateVisitRecordRequest
- type CreateVisitRecordResponse
- type DeleteCarbonFootprintLogRequest
- type DeleteCarbonFootprintLogResponse
- type DeleteCommuteRequest
- type Energy
- type GetBackgroundResponse
- type GetCarbonFootprintLogQuery
- type GetCarbonFootprintLogResponse
- type GetCommute30Response
- type GetCommuteQuery
- type GetCommuteResponse
- type GetDateVisitRecordResponse
- type GetTangentIntervieweeQuery
- type GetTangentIntervieweeResponse
- type GetVisit30Response
- type GetVisitRecordQuery
- type GetVisitRecordResponse
- type SummaryInfo
- type VisitDetail
- type VisitInfo
- type VisitRecordInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCarbonFootprintLog ¶
func CreateCarbonFootprintLog(params *CreateCarbonFootprintLogRequest) (string, error)
func CreateVisitRecord ¶
func CreateVisitRecord(params *CreateVisitRecordRequest) (string, error)
func GetCarbonFootprintLog ¶
func GetCarbonFootprintLog(params *GetCarbonFootprintLogQuery) (*Energy, []CarbonFootprintLogInfo, int64, error)
func GetMemberCurrentDay ¶
func GetMemberCurrentDay(params *GetCommuteQuery) (int, *CheckinInfo, *SummaryInfo, error)
func GetTangentInterviewee ¶
func PunchClock ¶
func PunchClock(params *CreateCommuteRequest) (string, error)
Types ¶
type BackgroundInfo ¶
type BackgroundInfo struct { ImageUrl string `json:"imageUrl"` Copyright string `json:"copyright"` Date string `json:"date"` Week string `json:"week"` LunarYear string `json:"lunarYear"` }
func GetBackground ¶
func GetBackground() (*BackgroundInfo, error)
type CarbonFootprintLogInfo ¶
type CheckinInfo ¶
type CommuteInfo ¶
func StatisticCommute30 ¶
func StatisticCommute30(userIDs []string) ([]CommuteInfo, error)
type CreateCarbonFootprintLogResponse ¶
type CreateCarbonFootprintLogResponse struct { ID string `json:"id" binding:"required"` // contains filtered or unexported fields }
type CreateCommuteRequest ¶
type CreateCommuteRequest struct { ID string `json:"id"` MemberID string `json:"memberId"` Walking uint8 `json:"walking"` Cycling uint8 `json:"cycling"` ElecCars uint8 `json:"elecCars"` FuelVehicles uint8 `json:"fuelVehicles"` Bus uint8 `json:"bus"` SubWay uint8 `json:"subWay"` SaveWater uint8 `json:"saveWater"` SaveElec uint8 `json:"saveElec"` }
type CreateCommuteResponse ¶
type CreateCommuteResponse struct { CheckinTime string `json:"checkinTime"` // contains filtered or unexported fields }
type CreateVisitRecordRequest ¶
type CreateVisitRecordRequest struct { CompanyName string `json:"companyName"` VisitorName string `json:"visitorName"` Mobile string `json:"mobile"` GoalType uint8 `json:"goalType"` IntervieweeID string `json:"intervieweeId"` IntervieweeName string `json:"intervieweeName"` CommuteType string `json:"commuteType"` VisitorID string `json:"visitorId"` MeetingID string `json:"meetingId"` TangentName string `json:"tangentName"` TangentID string `json:"tangentId"` }
type CreateVisitRecordResponse ¶
type CreateVisitRecordResponse struct { ID string `json:"id" binding:"required"` // contains filtered or unexported fields }
type DeleteCarbonFootprintLogRequest ¶
type DeleteCarbonFootprintLogRequest struct {
ID string `json:"id"`
}
type DeleteCarbonFootprintLogResponse ¶
type DeleteCarbonFootprintLogResponse struct {
// contains filtered or unexported fields
}
type DeleteCommuteRequest ¶
type DeleteCommuteRequest struct {
ID string `json:"id"`
}
type GetBackgroundResponse ¶
type GetCarbonFootprintLogResponse ¶
type GetCarbonFootprintLogResponse struct { CountInfo *Energy `json:"countInfo"` Infos []CarbonFootprintLogInfo `json:"infos"` TotalCount int64 `json:"totalCount"` PageNo int `json:"pageNo"` // contains filtered or unexported fields }
type GetCommute30Response ¶
type GetCommute30Response struct { Infos []CommuteInfo `json:"infos"` // contains filtered or unexported fields }
type GetCommuteQuery ¶
type GetCommuteResponse ¶
type GetCommuteResponse struct { TotalTimes int `json:"totalTimes"` CheckinInfo *CheckinInfo `json:"checkinInfo"` SummaryInfo *SummaryInfo `json:"summaryInfo"` // contains filtered or unexported fields }
type GetDateVisitRecordResponse ¶
type GetDateVisitRecordResponse struct { Infos []VisitDetail `json:"infos"` // contains filtered or unexported fields }
type GetVisit30Response ¶
type GetVisit30Response struct { Infos []VisitInfo `json:"infos"` // contains filtered or unexported fields }
type GetVisitRecordQuery ¶
type GetVisitRecordQuery struct { ID string `form:"id"` CompanyName string `form:"companyName"` VisitorName string `form:"visitorName"` GoalType uint8 `form:"goalType"` CommuteType string `form:"commuteType"` VisitorID string `form:"visitorId"` CreateDate string `form:"createDate"` TangentID string `form:"orgId"` PageNo int `form:"pageNo"` PageSize int `form:"pageSize"` }
type GetVisitRecordResponse ¶
type GetVisitRecordResponse struct { PageNo int `json:"pageNo"` TotalCount int64 `json:"totalCount"` Infos []VisitRecordInfo `json:"infos"` // contains filtered or unexported fields }
type SummaryInfo ¶
type SummaryInfo struct { ID string `json:"id"` CreateDate string `json:"createDate"` LastCheckinTime string `json:"lastCheckinTime"` MemberID string `json:"memberId"` Walking uint8 `json:"walking"` Cycling uint8 `json:"cycling"` ElecCars uint8 `json:"elecCars"` FuelVehicles uint8 `json:"fuelVehicles"` Bus uint8 `json:"bus"` SubWay uint8 `json:"subWay"` SaveWater uint8 `json:"saveWater"` SaveElec uint8 `json:"saveElec"` }
type VisitDetail ¶
type VisitDetail struct { Interviewees string `json:"interviewees"` CommuteType string `json:"commute_type"` Mobile string `json:"mobile"` Name string `json:"name"` ID string `json:"id"` Dept string `json:"dept"` Time string `json:"time"` Type string `json:"type"` }
func StatisticVisitDetail ¶
func StatisticVisitDetail(tangentID string, date string) ([]VisitDetail, error)
type VisitInfo ¶
func StatisticVisit30 ¶
type VisitRecordInfo ¶
type VisitRecordInfo struct { ID string `json:"id"` CompanyName string `json:"companyName"` VisitorName string `json:"visitorName"` Mobile string `json:"mobile"` GoalType uint8 `json:"goalType"` IntervieweeID string `json:"intervieweeId"` IntervieweeName string `json:"intervieweeName"` CommuteType string `json:"commuteType"` VisitorID string `json:"memberId"` CreateDate string `json:"createDate"` MeetingID string `json:"meetingId"` TangentID string `json:"tangentId"` }
func GetVisitRecord ¶
func GetVisitRecord(params *GetVisitRecordQuery) ([]VisitRecordInfo, int64, error)
Click to show internal directories.
Click to hide internal directories.