mbbc

package
v0.13.17 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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 DeleteBusinessCard(bcId string, userId string, newCardId string) error

func DeleteBusinessCardEntityFromHolder

func DeleteBusinessCardEntityFromHolder(params *DeleteBusinessCardEntityFromHolderQuery) error

func DeleteBusinessCardFromHolder

func DeleteBusinessCardFromHolder(params *DeleteBusinessCardFromHolderQuery) error

func DeleteBusinessCardMemo

func DeleteBusinessCardMemo(memoId string) error

func Destroy

func Destroy()

func Init

func Init(baseUrl string, timeoutSec time.Duration)

func SaveBusinessCardToHolder

func SaveBusinessCardToHolder(params *SaveBusinessCardToHolderRequest) error

func SetBCDisabled added in v0.9.55

func SetBCDisabled(params *SetBCDisabledRequest) 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 AddBusinessCardRemarkRequest

type AddBusinessCardRemarkRequest struct {
	UserID      string `json:"userId"`
	SavedUserID string `json:"saveUserId"`
	Remark      string `json:"remark"`
}

type BusinessCardHolderUsersInfo

type BusinessCardHolderUsersInfo struct {
	UserID      string `json:"userId"`
	SavedUserID string `json:"savedUserId"`
	Remark      string `json:"remark"`
}

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"`
	Status                uint8    `json:"status"`
}

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 ChangeBusinessCardRequest

type ChangeBusinessCardRequest struct {
	UserID         string `json:"userId"`
	BusinessCardID string `json:"businessCardId"`
}

type CreateBusinessCardMemoRequest

type CreateBusinessCardMemoRequest struct {
	UserBusinessCardID string   `json:"userBusinessCardId"`
	Memo               string   `json:"memo"`
	Pics               []string `json:"pics"`
}

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 DeleteBusinessCardEntityFromHolderQuery

type DeleteBusinessCardEntityFromHolderQuery struct {
	UserID         string `form:"userId" binding:"required"`
	BusinessCardID string `form:"businessCardId" binding:"required"`
}

type DeleteBusinessCardEntityFromHolderResponse

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

type DeleteBusinessCardFromHolderQuery

type DeleteBusinessCardFromHolderQuery struct {
	UserID             string `form:"userId" binding:"required"`
	BusinessCardUserID string `form:"businessCardUserId" binding:"required"`
	BusinessCardID     string `form:"businessCardId" binding:"required"`
}

type DeleteBusinessCardMemoResponse

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

type DeleteBusinessCardQuery

type DeleteBusinessCardQuery struct {
	UserID string `form:"userId" binding:"required"`
}

type GetBusinessCardHolderUsersQuery

type GetBusinessCardHolderUsersQuery struct {
	UserID      string `form:"userId" binding:"required"`
	SavedUserID string `form:"savedUserId" binding:"required"`
}

type GetBusinessCardHolderUsersResponse

type GetBusinessCardHolderUsersResponse struct {
	HolderUsers []BusinessCardHolderUsersInfo `json:"infos" binding:"required"`
	// contains filtered or unexported fields
}

type GetBusinessCardMemosQuery

type GetBusinessCardMemosQuery struct {
	MemoId             string `json:"memoId"`
	UserBusinessCardId string `json:"userBusinessCardId"`
}

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 GetBusinessCardsInHolderQuery

type GetBusinessCardsInHolderQuery struct {
	UserID             string `form:"userId" binding:"required"`
	BusinessCardID     string `form:"businessCardId" binding:"required"`
	BusinessCardUserID string `form:"businessCardUserId" binding:"required"`
}

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

type PicInfo struct {
	URL     string `json:"url"`
	ObjName string `json:"objName"`
}

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 SaveBusinessCardToHolderRequest

type SaveBusinessCardToHolderRequest struct {
	UserID             string `json:"userId" binding:"required"`
	BusinessCardUserID string `json:"businessCardUserId" binding:"required"`
	BusinessCardID     string `json:"businessCardId" binding:"required"`
}

type SetBCDisabledRequest added in v0.9.55

type SetBCDisabledRequest struct {
	ID string `json:"id"`
}

type SetBCDisabledResponse added in v0.9.55

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

type UpdateBcTangentFormatRequest

type UpdateBcTangentFormatRequest struct {
	TangentID  string `json:"tangentId"`
	Background string `json:"background"`
	FontColor  string `json:"fontColor"`
	Format     string `json:"format"`
}

type UpdateBcTangentFormatResponse

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

type UpdateBusinessCardMemoRequest

type UpdateBusinessCardMemoRequest struct {
	ID   string   `json:"id"`
	Memo string   `json:"memo"`
	Pics []string `json:"pics"`
}

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"`
}

type UserBusinessCard

type UserBusinessCard struct {
	ID                 string `json:"id"`
	UserID             string `json:"userId"`
	BusinessCardID     string `json:"businessCardId"`
	BusinessCardUserId string `json:"BusinessCardUserId"`
}

Jump to

Keyboard shortcuts

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