mbtm

package
v0.9.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptTrialApply added in v0.5.3

func AcceptTrialApply(id string) error

func AddUserEnterprise

func AddUserEnterprise(reqParams *AddUserEnterpriseRequest) error

func AuthEnterprise added in v0.5.1

func AuthEnterprise(req *AuthEnterpriseRequest) error

func CreateEnterprise

func CreateEnterprise(reqParams *CreateEnterpriseRequest) (string, error)

func CreateEnterpriseDelayPrice

func CreateEnterpriseDelayPrice(reqParams *CreateEnterpriseDelayPriceRequest) (string, error)

func CreateOrgStructure

func CreateOrgStructure(orgName string, enterpriseID string, parentID string) error

func CreateRechargeRecord

func CreateRechargeRecord(reqParams *CreateRechargeRecordRequest) error

func CreateTrialApply added in v0.4.0

func CreateTrialApply(req *CreateTrialApplyRequest) error

func DelUserEnterprise

func DelUserEnterprise(reqParams *DelUserEnterpriseRequest) error

func DelayEnterprise

func DelayEnterprise(reqParams *DelayEnterpriseRequest) error

func DeleteEnterprise

func DeleteEnterprise(enterpriseID string) error

func DeleteEnterpriseDelayPrice

func DeleteEnterpriseDelayPrice(reqParams *DeleteEnterpriseDelayPriceRequest) error

func DeleteOrgStructure

func DeleteOrgStructure(enterpriseID string, structureID string) error

func Destroy

func Destroy()

func GetOrgUserTotal added in v0.8.13

func GetOrgUserTotal(enterpriseID string) (int64, error)

func Init

func Init(baseUrl string, timeoutSec time.Duration)

func RefuseTrialApply added in v0.5.3

func RefuseTrialApply(id string) error

func RevokeTrialApply added in v0.5.3

func RevokeTrialApply(id string) error

func SetEnterpriseAdopt

func SetEnterpriseAdopt(reqParams *SetEnterprisesStatusRequest) error

func SetEnterpriseAuthing

func SetEnterpriseAuthing(reqParams *SetEnterprisesStatusRequest) error

func SetEnterpriseRefuse

func SetEnterpriseRefuse(reqParams *SetEnterprisesStatusRequest) error

func UpdateEnterprise

func UpdateEnterprise(reqParams *UpdateEnterpriseRequest) error

func UpdateEnterpriseDelayPrice

func UpdateEnterpriseDelayPrice(reqParams *UpdateEnterpriseDelayPriceRequest) error

func UpdateOrgStructure

func UpdateOrgStructure(enterpriseID string, orgStructureID string, orgName string) error

func UpdateOrgUser

func UpdateOrgUser(orgID string, userID string, position string, enterpriseID string) error

func UpdateRechargeRecord

func UpdateRechargeRecord(reqParams *UpdateRechargeRecordRequest) error

func UploadEnterpriseBackground

func UploadEnterpriseBackground(params *UploadEnterpriseBackgroundRequest) (string, string, error)

func UploadEnterpriseBusinessLicense added in v0.4.0

func UploadEnterpriseBusinessLicense(enterpriseID string, header *multipart.FileHeader) (string, string, error)
func UploadEnterpriseLogo(face *multipart.FileHeader) (string, string, error)

func UserJoinOrg

func UserJoinOrg(userID string, orgID string, position string, enterpriseID string) error

func UserLeaveOrg

func UserLeaveOrg(userID string, orgID string, position string) error

Types

type AddUserEnterpriseRequest

type AddUserEnterpriseRequest struct {
	UserID       string `form:"userId"`
	EnterpriseID string `form:"enterpriseId"`
}

type AuthEnterpriseRequest added in v0.5.1

type AuthEnterpriseRequest struct {
	ID               string  `json:"id"`
	Contacts         string  `json:"contacts"`
	ContactPhone     string  `json:"contactPhone"`
	CompanyName      string  `json:"companyName"`
	LegalPerson      string  `json:"legalPerson"`
	LegalPersonCard  string  `json:"legalPersonCard"`
	BusinessLicense  string  `json:"businessLicense"`
	IndustryCategory string  `json:"industryCategory"`
	Industry         string  `json:"industry"`
	SocialCreditCode string  `json:"socialCreditCode"`
	Longitude        float64 `json:"longitude"`
	Latitude         float64 `json:"latitude"`
	Address          string  `json:"address"`
	Website          string  `json:"website"`
	Email            string  `json:"email"`
	LocationAddress  string  `json:"locationAddress"`
	Background       string  `json:"background"`
}

type CmsInfo added in v0.1.4

type CmsInfo struct {
	ID           string `json:"id"`
	EnterpriseID string `json:"enterpriseId"`
	CmsOrgID     int    `json:"cmsOrgId"`
	SiteID       string `json:"siteId"`
}

func GetCmsOrgInfo added in v0.1.4

func GetCmsOrgInfo(enterpriseID string) (*CmsInfo, error)

type CreateEnterpriseDelayPriceRequest

type CreateEnterpriseDelayPriceRequest struct {
	ID            string  `json:"id"`
	Name          string  `json:"name"`
	DateType      uint8   `json:"dateType"`
	DelayValue    int     `json:"delayValue"`
	OriginalPrice float64 `json:"originalPrice"`
	CurrentPrice  float64 `json:"currentPrice"`
	Status        uint8   `json:"status"`
	ActivityID    string  `json:"activityId"`
}

type CreateEnterpriseDelayPriceResponse

type CreateEnterpriseDelayPriceResponse struct {
	ID string `json:"id" binding:"required"`
	// contains filtered or unexported fields
}

type CreateEnterpriseRequest

type CreateEnterpriseRequest struct {
	UserID      string `json:"userId" binding:"required"`
	CompanyName string `json:"companyName"`
}

type CreateOrgStructureRequest

type CreateOrgStructureRequest struct {
	OrgName      string `json:"orgName" binding:"required"`
	EnterpriseID string `json:"enterpriseId" binding:"required"`
	ParentID     string `json:"parentId"`
}

type CreateRechargeRecordRequest

type CreateRechargeRecordRequest struct {
	TxID      string `json:"TxId"`
	PriceID   string `json:"priceId"`
	Status    uint8  `json:"status"`
	MemberID  string `json:"memberId"`
	CompanyID string `json:"companyId"`
}

type CreateRechargeRecordResponse

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

type CreateTrialApplyRequest added in v0.4.0

type CreateTrialApplyRequest struct {
	TangentID        string `json:"tangentId"`
	TrialType        uint8  `json:"trialType"`
	TrialDetail      string `json:"trialDetail"`
	TeamSize         string `json:"teamSize"`
	IndustryCategory string `json:"industryCategory"`
	Industry         string `json:"industry"`
	Name             string `json:"name"`
	Position         string `json:"position"`
	Phone            string `json:"phone"`
}

type DelUserEnterpriseRequest

type DelUserEnterpriseRequest struct {
	UserID       string `form:"userId"`
	EnterpriseID string `form:"enterpriseId"`
}

type DelayEnterpriseRequest

type DelayEnterpriseRequest struct {
	WxTxID      string `json:"WxTxId"`
	DelayType   uint8  `json:"delayType"`
	CompanyID   string `json:"companyId"`
	CompanyName string `json:"companyName"`
	MemberID    string `json:"memberId"`
	DateType    uint8  `json:"dateType"`
	DelayValue  int    `json:"delayValue"`
	Remark      string `json:"remark"`
}

type DelayEnterpriseResponse

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

type DelayRecordInfo

type DelayRecordInfo struct {
	ID          string `json:"id"`
	WxTxID      string `json:"WxTxId"`
	DelayType   uint8  `json:"delayType"`
	CompanyID   string `json:"companyId"`
	CompanyName string `json:"companyName"`
	MemberID    string `json:"memberId"`
	StartTime   string `json:"startTime"`
	EndTime     string `json:"endTime"`
	DateType    uint8  `json:"dateType"`
	DelayValue  int    `json:"delayValue"`
	Remark      string `json:"remark"`
}

func GetDelayRecords

func GetDelayRecords(reqPrams *GetDelayRecordsQuery) ([]DelayRecordInfo, int64, error)

type DeleteEnterpriseDelayPriceRequest

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

type DeleteEnterpriseDelayPriceResponse

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

type DeleteOrgStructureQuery

type DeleteOrgStructureQuery struct {
	EnterpriseID string `form:"enterpriseId" binding:"required"`
}

type DeptUser added in v0.9.2

type DeptUser struct {
	DeptID   string   `json:"deptId"`
	DeptName string   `json:"deptName"`
	UserIDs  []string `json:"userIDs"`
}

func GetOrgDeptAndUsers added in v0.9.2

func GetOrgDeptAndUsers(enterpriseID string) ([]*DeptUser, error)

type EnterpriseDelayPriceInfo

type EnterpriseDelayPriceInfo struct {
	ID            string  `json:"id"`
	Name          string  `json:"name"`
	DateType      uint8   `json:"dateType"`
	DelayValue    int     `json:"delayValue"`
	OriginalPrice float64 `json:"originalPrice"`
	CurrentPrice  float64 `json:"currentPrice"`
	Status        uint8   `json:"status"`
	ActivityID    string  `json:"activityId"`
}

func GetEnterpriseDelayPrice

func GetEnterpriseDelayPrice(reqPrams *GetEnterpriseDelayPriceQuery) ([]EnterpriseDelayPriceInfo, int64, error)

type EnterpriseInfo

type EnterpriseInfo struct {
	ID               string  `json:"id"`
	CompanyName      string  `json:"companyName"`
	Contacts         string  `json:"contacts"`
	ContactPhone     string  `json:"contactPhone"`
	LegalPerson      string  `json:"legalPerson"`
	LegalPersonCard  string  `json:"legalPersonCard"`
	BusinessLicense  string  `json:"businessLicense"`
	Status           string  `json:"status"`
	Longitude        float64 `json:"longitude"`
	Latitude         float64 `json:"latitude"`
	Address          string  `json:"address"`
	DetailState      string  `json:"detailState"`
	Email            string  `json:"email"`
	Website          string  `json:"website"`
	LocationAddress  string  `json:"locationAddress"`
	Background       string  `json:"background"`
	BackgroundUrl    string  `json:"backgroundUrl"`
	ExpiredTime      string  `json:"expiredTime"`
	IndustryCategory string  `json:"industryCategory"`
	Industry         string  `json:"industry"`
	SocialCreditCode string  `json:"socialCreditCode"`
}

func GetEnterprise

func GetEnterprise(companyName string) (*EnterpriseInfo, error)

func GetEnterprises

func GetEnterprises(enterpriseID string, companyName string, contactPhone string, industryCategory string, industry string, pageNo int, pageSize int) ([]EnterpriseInfo, int64, error)

func GetEnterprisesByIDs

func GetEnterprisesByIDs(ids []string) ([]EnterpriseInfo, error)

func GetUserEnterprises

func GetUserEnterprises(userId string, enterpriseID string, pageNo int, pageSize int) ([]EnterpriseInfo, int64, error)

type GetCmsOrgInfoResponse added in v0.1.4

type GetCmsOrgInfoResponse struct {
	Info *CmsInfo `json:"info"`
	// contains filtered or unexported fields
}

type GetDelayRecordsQuery

type GetDelayRecordsQuery struct {
	ID        string `form:"id"`
	DelayType uint8  `form:"delayType"`
	CompanyID string `form:"companyId"`
	MemberID  string `form:"memberId"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
}

type GetDelayRecordsResponse

type GetDelayRecordsResponse struct {
	PageNo     int               `json:"pageNo" binding:"required"`
	TotalCount int64             `json:"totalCount" binding:"required"`
	Infos      []DelayRecordInfo `json:"infos" binding:"required"`
	// contains filtered or unexported fields
}

type GetEnterpriseDelayPriceQuery

type GetEnterpriseDelayPriceQuery struct {
	ID         string `form:"id"`
	Status     uint8  `form:"status"`
	ActivityID string `form:"activityId"`
	PageNo     int    `form:"pageNo"`
	PageSize   int    `form:"pageSize"`
}

type GetEnterpriseDelayPricesResponse

type GetEnterpriseDelayPricesResponse struct {
	PageNo     int                        `json:"pageNo" binding:"required"`
	TotalCount int64                      `json:"totalCount" binding:"required"`
	Infos      []EnterpriseDelayPriceInfo `json:"infos" binding:"required"`
	// contains filtered or unexported fields
}

type GetOrgDeptAndUsersResponse added in v0.9.2

type GetOrgDeptAndUsersResponse struct {
	Infos []*DeptUser `json:"infos"`
	// contains filtered or unexported fields
}

type GetOrgStructureQuery

type GetOrgStructureQuery struct {
	EnterpriseID string `form:"enterpriseId" binding:"required"`
}

type GetOrgStructureResponse

type GetOrgStructureResponse struct {
	Infos []OrgStructureInfo `json:"infos"`
	// contains filtered or unexported fields
}

type GetOrgUserQuery

type GetOrgUserQuery struct {
	OrgID    string `form:"orgId" binding:"required"`
	PageNo   int    `form:"pageNo"`
	PageSize int    `form:"pageSize"`
}

type GetOrgUserResponse

type GetOrgUserResponse struct {
	Infos      []OrgUserInfo `json:"infos"`
	PageNo     int           `json:"pageNo"`
	TotalCount int64         `json:"totalCount"`
	// contains filtered or unexported fields
}

type GetOrgUserTotalResponse added in v0.8.13

type GetOrgUserTotalResponse struct {
	Total int64 `json:"total"`
	// contains filtered or unexported fields
}

type GetRechargeRecordQuery

type GetRechargeRecordQuery struct {
	TxID string `form:"TxId"`
}

type GetRechargeRecordResponse

type GetRechargeRecordResponse struct {
	Info *RecordInfo `json:"info" binding:"required"`
	// contains filtered or unexported fields
}

type GetTrailApplyResponse added in v0.4.0

type GetTrailApplyResponse struct {
	Infos      []TrialApplyInfo `json:"infos"`
	TotalCount int64            `json:"totalCount"`
	PageNo     int              `json:"pageNo"`
	// contains filtered or unexported fields
}

type GetUserOrgStructureResponse

type GetUserOrgStructureResponse struct {
	Info *UserOrgStructureInfo `json:"info"`
	// contains filtered or unexported fields
}

type OperateTrialApplyRequest added in v0.5.2

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

type OrgStructureInfo

type OrgStructureInfo struct {
	ID           string             `json:"id"`
	OrgName      string             `json:"orgName"`
	EnterpriseID string             `json:"enterpriseId"`
	Sons         []OrgStructureInfo `json:"sons"`
}

func GetOrgStructure

func GetOrgStructure(enterpriseID string) ([]OrgStructureInfo, error)

type OrgUserInfo

type OrgUserInfo struct {
	UserID   string `json:"userId"`
	Position string `json:"position"`
}

func GetOrgUser

func GetOrgUser(orgID string, enterpriseID string, pageNo int, pageSize int) ([]OrgUserInfo, int64, error)

type RecordInfo

type RecordInfo struct {
	TxID      string `json:"txId"`
	PriceID   string `json:"PriceId"`
	Status    uint8  `json:"status"`
	MemberID  string `json:"memberId"`
	CompanyID string `json:"companyId"`
}

func GetRechargeRecord

func GetRechargeRecord(reqPrams *GetRechargeRecordQuery) (*RecordInfo, error)

type SetEnterprisesStatusRequest

type SetEnterprisesStatusRequest struct {
	ID string `json:"id" binding:"required"`
}

type TrialApplyInfo added in v0.4.0

type TrialApplyInfo struct {
	ID               string `json:"id"`
	TangentID        string `json:"tangentId"`
	TangentName      string `json:"tangentName"`
	TrialType        uint8  `json:"trialType"`
	TrialDetail      string `json:"trialDetail"`
	TeamSize         string `json:"teamSize"`
	IndustryCategory string `json:"industryCategory"`
	Industry         string `json:"industry"`
	Name             string `json:"name"`
	Position         string `json:"position"`
	Phone            string `json:"phone"`
	Status           uint8  `json:"status"`
	CreateTime       string `json:"createTime"`
}

func GetTrialApply added in v0.5.3

func GetTrialApply(tangentID string, tangentName string, pageNo int, pageSize int) ([]TrialApplyInfo, int64, error)

type UpdateEnterpriseDelayPriceRequest

type UpdateEnterpriseDelayPriceRequest struct {
	ID            string  `json:"id"`
	Name          string  `json:"name"`
	DateType      uint8   `json:"dateType"`
	DelayValue    int     `json:"delayValue"`
	OriginalPrice float64 `json:"originalPrice"`
	CurrentPrice  float64 `json:"currentPrice"`
	Status        uint8   `json:"status"`
	ActivityID    string  `json:"activityId"`
}

type UpdateEnterpriseDelayPriceResponse

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

type UpdateEnterpriseRequest

type UpdateEnterpriseRequest struct {
	ID              string  `json:"id"`
	Contacts        string  `json:"contacts"`
	ContactPhone    string  `json:"contactPhone"`
	Longitude       float64 `json:"longitude"`
	Latitude        float64 `json:"latitude"`
	Address         string  `json:"address"`
	LocationAddress string  `json:"locationAddress"`
	Introduction    string  `json:"introduction"`
	Email           string  `json:"email"`
	Website         string  `json:"website"`
	Background      string  `json:"background"`
}

type UpdateOrgStructureRequest

type UpdateOrgStructureRequest struct {
	EnterpriseID   string `json:"enterpriseId" binding:"required"`
	OrgStructureID string `json:"orgStructureId" binding:"required"`
	OrgName        string `json:"orgName"`
}

type UpdateOrgUserRequest

type UpdateOrgUserRequest struct {
	OrgID        string `json:"orgId"`
	UserID       string `json:"userId"`
	Position     string `json:"position"`
	EnterpriseID string `json:"enterpriseId"`
}

type UpdateRechargeRecordRequest

type UpdateRechargeRecordRequest struct {
	TxID   string `json:"TxId"`
	Status uint8  `json:"status"`
}

type UpdateRechargeRecordResponse

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

type UploadEnterpriseBackgroundRequest

type UploadEnterpriseBackgroundRequest struct {
	Background *multipart.FileHeader `form:"background" binding:"required"`
}

type UploadEnterpriseBackgroundResponse

type UploadEnterpriseBackgroundResponse struct {
	URL     string `json:"url"`
	ObjName string `json:"objName"`
	// contains filtered or unexported fields
}

type UploadEnterpriseBusinessLicenseResponse added in v0.4.0

type UploadEnterpriseBusinessLicenseResponse struct {
	ObjName string `json:"objName"`
	Url     string `json:"url"`
	// contains filtered or unexported fields
}

type UserJoinOrgRequest

type UserJoinOrgRequest struct {
	UserID       string `json:"userId" binding:"required"`
	OrgID        string `json:"orgId" binding:"required"`
	Position     string `json:"position" binding:"required"`
	EnterpriseID string `json:"enterpriseId" binding:"required"`
}

type UserLeaveOrgRequest

type UserLeaveOrgRequest struct {
	UserID   string `json:"userId" binding:"required"`
	OrgID    string `json:"orgId" binding:"required"`
	Position string `json:"position" binding:"required"`
}

type UserOrgStructureInfo

type UserOrgStructureInfo struct {
	ID       string `json:"id"`
	Name     string `json:"name"`
	Position string `json:"position"`
}

func GetUserOrgStructure

func GetUserOrgStructure(userId, enterpriseId string) (*UserOrgStructureInfo, error)

Jump to

Keyboard shortcuts

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