Documentation ¶
Index ¶
- func AddBusinessCardRemark(params *AddBusinessCardRemarkRequest) error
- func ChangeBusinessCard(params *ChangeBusinessCardRequest) error
- func CreateBusinessCard(params *CreateBusinessCardRequest) (string, error)
- func CreateBusinessCardMemo(params *CreateBusinessCardMemoRequest) (string, error)
- func DeleteBusinessCard(bcId string, userId string, newCardId string) error
- func DeleteBusinessCardEntityFromHolder(params *DeleteBusinessCardEntityFromHolderQuery) error
- func DeleteBusinessCardFromHolder(params *DeleteBusinessCardFromHolderQuery) error
- func DeleteBusinessCardMemo(memoId string) error
- func Destroy()
- func Init(baseUrl string, timeoutSec time.Duration)
- func SaveBusinessCardToHolder(params *SaveBusinessCardToHolderRequest) error
- func UpdateBcTangentFormat(params *UpdateBcTangentFormatRequest) error
- func UpdateBusinessCard(params *UpdateBusinessCardRequest) error
- func UpdateBusinessCardMemo(params *UpdateBusinessCardMemoRequest) error
- func UpdateTangentBusinessCardASS(params *UpdateTangentBusinessCardASSRequest) error
- func UploadBusinessCardBackground(params *UploadBusinessCardBackgroundRequest) (string, string, error)
- type AddBusinessCardRemarkRequest
- type BusinessCardHolderUsersInfo
- type BusinessCardInHolderInfo
- type BusinessCardInfo
- type BusinessCardRecognitionInfo
- type BusinessCardsInHolder
- type ChangeBusinessCardRequest
- type CreateBusinessCardMemoRequest
- type CreateBusinessCardRequest
- type DeleteBusinessCardEntityFromHolderQuery
- type DeleteBusinessCardEntityFromHolderResponse
- type DeleteBusinessCardFromHolderQuery
- type DeleteBusinessCardMemoResponse
- type DeleteBusinessCardQuery
- type GetBusinessCardHolderUsersQuery
- type GetBusinessCardHolderUsersResponse
- type GetBusinessCardMemosQuery
- type GetBusinessCardMemosResponse
- type GetBusinessCardsEntityInHolderQuery
- type GetBusinessCardsEntityInHolderResponse
- type GetBusinessCardsInHolderQuery
- type GetBusinessCardsInHolderResponse
- type GetBusinessCardsQuery
- type GetCurBusinessCardResponse
- type HolderBusinessCardInfo
- type MemoInfo
- type PicInfo
- type RecognitionEntityBusinessCardRequest
- type RecognitionEntityBusinessCardResponse
- type SaveBusinessCardToHolderRequest
- type UpdateBcTangentFormatRequest
- type UpdateBcTangentFormatResponse
- type UpdateBusinessCardMemoRequest
- type UpdateBusinessCardMemoResponse
- type UpdateBusinessCardRequest
- type UpdateTangentBusinessCardASSRequest
- type UpdateTangentBusinessCardASSResponse
- type UploadBusinessCardBackgroundRequest
- type UploadBusinessCardMemoImgRequest
- type UserBusinessCard
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBusinessCardRemark ¶
func AddBusinessCardRemark(params *AddBusinessCardRemarkRequest) error
func ChangeBusinessCard ¶
func ChangeBusinessCard(params *ChangeBusinessCardRequest) error
func CreateBusinessCard ¶
func CreateBusinessCard(params *CreateBusinessCardRequest) (string, error)
func CreateBusinessCardMemo ¶
func CreateBusinessCardMemo(params *CreateBusinessCardMemoRequest) (string, error)
func DeleteBusinessCard ¶
func DeleteBusinessCardEntityFromHolder ¶
func DeleteBusinessCardEntityFromHolder(params *DeleteBusinessCardEntityFromHolderQuery) error
func DeleteBusinessCardFromHolder ¶
func DeleteBusinessCardFromHolder(params *DeleteBusinessCardFromHolderQuery) error
func DeleteBusinessCardMemo ¶
func SaveBusinessCardToHolder ¶
func SaveBusinessCardToHolder(params *SaveBusinessCardToHolderRequest) error
func UpdateBcTangentFormat ¶
func UpdateBcTangentFormat(params *UpdateBcTangentFormatRequest) error
func UpdateBusinessCard ¶
func UpdateBusinessCard(params *UpdateBusinessCardRequest) error
func UpdateBusinessCardMemo ¶
func UpdateBusinessCardMemo(params *UpdateBusinessCardMemoRequest) error
func UpdateTangentBusinessCardASS ¶ added in v0.7.0
func UpdateTangentBusinessCardASS(params *UpdateTangentBusinessCardASSRequest) error
func UploadBusinessCardBackground ¶
func UploadBusinessCardBackground(params *UploadBusinessCardBackgroundRequest) (string, string, error)
Types ¶
type BusinessCardHolderUsersInfo ¶
type BusinessCardHolderUsersInfo struct { UserID string `json:"userId"` SavedUserID string `json:"savedUserId"` Remark string `json:"remark"` }
func GetBusinessCardHolderUsers ¶
func GetBusinessCardHolderUsers(params *GetBusinessCardHolderUsersQuery) ([]BusinessCardHolderUsersInfo, error)
type BusinessCardInHolderInfo ¶
type BusinessCardInHolderInfo struct { Lastname string `json:"lastname"` Infos []HolderBusinessCardInfo `json:"infos"` }
type BusinessCardInfo ¶
type BusinessCardInfo struct { ID string `json:"id" binding:"required"` Type uint8 `json:"type" binding:"required"` Name string `json:"name" binding:"required"` Phone string `json:"phone" binding:"required"` Email string `json:"email"` TangentName string `json:"tangentName"` TangentID string `json:"tangentId"` IndustryCategory string `json:"industryCategory"` Position string `json:"position"` Faith string `json:"faith"` Introduction string `json:"introduction"` BusinessScopes []string `json:"businessScopes"` Address string `json:"address"` LocationAddress string `json:"locationAddress"` Longitude float64 `json:"longitude"` Latitude float64 `json:"latitude"` JobTitles []string `json:"JobTitles"` FontColor string `json:"fontColor"` Format string `json:"format"` Background string `json:"background"` UserId string `json:"userId"` EntityBusinessCardUrl string `json:"entityBusinessCardUrl"` HideAvatar string `json:"hideAvatar"` }
func GetBusinessCards ¶
func GetBusinessCards(params *GetBusinessCardsQuery) ([]BusinessCardInfo, int64, error)
func GetBusinessCardsEntityInHolder ¶
func GetBusinessCardsEntityInHolder(params *GetBusinessCardsEntityInHolderQuery) ([]BusinessCardInfo, error)
func GetCurBusinessCard ¶
func GetCurBusinessCard(userID string) (*BusinessCardInfo, error)
type BusinessCardRecognitionInfo ¶
type BusinessCardRecognitionInfo struct { Addr string `json:"addr"` Fax string `json:"fax"` Mobile string `json:"mobile"` Name string `json:"name"` PC string `json:"pc"` Url string `json:"url"` Tel string `json:"tel"` Company string `json:"company"` Title string `json:"title"` ObjName string `json:"objName"` OssUrl string `json:"ossUrl"` }
func BusinessCardRecognition ¶
func BusinessCardRecognition(photo *multipart.FileHeader) (*BusinessCardRecognitionInfo, error)
type BusinessCardsInHolder ¶
type BusinessCardsInHolder struct { UserSavedInfo *UserBusinessCard `json:"userSavedInfo"` BusinessCardInfo *BusinessCardInfo `json:"businessCardInfo"` }
func GetBusinessCardsInHolder ¶
func GetBusinessCardsInHolder(params *GetBusinessCardsInHolderQuery) ([]BusinessCardsInHolder, error)
type CreateBusinessCardRequest ¶
type CreateBusinessCardRequest struct { UserID string `json:"userId" binding:"required"` Type uint8 `json:"type" binding:"required"` Name string `json:"name" binding:"required"` Phone string `json:"phone" binding:"required"` Email string `json:"email"` TangentName string `json:"tangentName"` TangentID string `json:"tangentId"` IndustryCategory string `json:"industryCategory"` Position string `json:"position"` Faith string `json:"faith"` Introduction string `json:"introduction"` BusinessScopes []string `json:"businessScopes"` Address string `json:"address"` LocationAddress string `json:"locationAddress"` Longitude float64 `json:"longitude"` Latitude float64 `json:"latitude"` Background string `json:"background"` JobTitles []string `json:"JobTitle"` FontColor string `json:"fontColor"` Format string `json:"format"` EntityBusinessCardObjName string `json:"entityBusinessCardObjName"` }
type DeleteBusinessCardEntityFromHolderResponse ¶
type DeleteBusinessCardEntityFromHolderResponse struct {
// contains filtered or unexported fields
}
type DeleteBusinessCardMemoResponse ¶
type DeleteBusinessCardMemoResponse struct {
// contains filtered or unexported fields
}
type DeleteBusinessCardQuery ¶
type DeleteBusinessCardQuery struct {
UserID string `form:"userId" binding:"required"`
}
type GetBusinessCardHolderUsersResponse ¶
type GetBusinessCardHolderUsersResponse struct { HolderUsers []BusinessCardHolderUsersInfo `json:"infos" binding:"required"` // contains filtered or unexported fields }
type GetBusinessCardMemosResponse ¶
type GetBusinessCardMemosResponse struct { MemoInfos []MemoInfo `json:"infos"` // contains filtered or unexported fields }
type GetBusinessCardsEntityInHolderQuery ¶
type GetBusinessCardsEntityInHolderQuery struct {
UserID string `form:"userId" binding:"required"`
}
type GetBusinessCardsEntityInHolderResponse ¶
type GetBusinessCardsEntityInHolderResponse struct { Infos []BusinessCardInfo `json:"infos"` // contains filtered or unexported fields }
type GetBusinessCardsInHolderResponse ¶
type GetBusinessCardsInHolderResponse struct { Infos []BusinessCardsInHolder `json:"infos" binding:"required"` // contains filtered or unexported fields }
type GetBusinessCardsQuery ¶
type GetBusinessCardsQuery struct { UserID string `form:"userId" binding:"required"` ID string `form:"id"` Type uint8 `form:"type"` Name string `form:"name"` Phone string `form:"phone"` TangentID string `form:"tangentId"` TangentName string `form:"tangentName"` IndustryCategory string `form:"industryCategory"` Position string `form:"position"` PageNo int `form:"pageNo"` PageSize int `form:"pageSize"` }
type GetCurBusinessCardResponse ¶
type GetCurBusinessCardResponse struct { Info *BusinessCardInfo `json:"info"` // contains filtered or unexported fields }
type HolderBusinessCardInfo ¶
type HolderBusinessCardInfo struct { BusinessCardInfo Remark string `json:"remark"` }
type MemoInfo ¶
type MemoInfo struct { ID string `json:"id"` UserBusinessCardID string `json:"userBusinessCardId"` Memo string `json:"memo"` Pics []PicInfo `json:"pics"` CreateDate time.Time `json:"createDate"` }
func GetBusinessCardMemos ¶
func GetBusinessCardMemos(params *GetBusinessCardMemosQuery) ([]MemoInfo, error)
type PicInfo ¶
func UploadBusinessCardMemoImg ¶
func UploadBusinessCardMemoImg(params *UploadBusinessCardMemoImgRequest) ([]PicInfo, error)
type RecognitionEntityBusinessCardRequest ¶
type RecognitionEntityBusinessCardRequest struct {
Photo *multipart.FileHeader `form:"file"`
}
type RecognitionEntityBusinessCardResponse ¶
type RecognitionEntityBusinessCardResponse struct { Info *BusinessCardRecognitionInfo `json:"info"` // contains filtered or unexported fields }
type UpdateBcTangentFormatResponse ¶
type UpdateBcTangentFormatResponse struct {
// contains filtered or unexported fields
}
type UpdateBusinessCardMemoResponse ¶
type UpdateBusinessCardMemoResponse struct {
// contains filtered or unexported fields
}
type UpdateBusinessCardRequest ¶
type UpdateBusinessCardRequest struct { UserID string `json:"userId" binding:"required"` ID string `json:"id" binding:"required"` Name string `json:"name"` Phone string `json:"phone"` Email string `json:"email"` TangentName string `json:"tangentName"` TangentID string `json:"tangentId"` IndustryCategory string `json:"industryCategory"` Position string `json:"position"` Faith string `json:"faith"` Introduction string `json:"introduction"` BusinessScopes []string `json:"businessScopes"` Address string `json:"address"` LocationAddress string `json:"locationAddress"` Longitude float64 `json:"longitude"` Latitude float64 `json:"latitude"` JobTitles []string `json:"JobTitle"` FontColor string `json:"fontColor"` Format string `json:"format"` Background string `json:"background"` HideAvatar string `json:"hideAvatar"` }
type UpdateTangentBusinessCardASSRequest ¶ added in v0.7.0
type UpdateTangentBusinessCardASSRequest struct { TangentID string `json:"tangentId"` Longitude float64 `json:"longitude"` Latitude float64 `json:"latitude"` Address string `json:"address"` LocationAddress string `json:"locationAddress"` BusinessScopes []string `json:"businessScopes"` FontColor string `json:"fontColor"` Format string `json:"format"` Background string `json:"background"` }
type UpdateTangentBusinessCardASSResponse ¶ added in v0.7.0
type UpdateTangentBusinessCardASSResponse struct {
// contains filtered or unexported fields
}
type UploadBusinessCardBackgroundRequest ¶
type UploadBusinessCardBackgroundRequest struct {
Background *multipart.FileHeader `form:"background" binding:"required"`
}
type UploadBusinessCardMemoImgRequest ¶
type UploadBusinessCardMemoImgRequest struct {
Img []*multipart.FileHeader `form:"img" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.