mbtm

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUserEnterprise

func AddUserEnterprise(reqParams *AddUserEnterpriseRequest) 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 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 Init

func Init(baseUrl string, timeoutSec time.Duration)

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

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 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 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 GetUserOrgStructureResponse

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

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, 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 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"`
	CompanyName      string  `json:"companyName"`
	Contacts         string  `json:"contacts"`
	ContactPhone     string  `json:"contactPhone"`
	LegalPerson      string  `json:"legalPerson"`
	LegalPersonCard  string  `json:"legalPersonCard"`
	BusinessLicense  string  `json:"businessLicense"`
	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"`
	IndustryCategory string  `json:"industryCategory"`
	Industry         string  `json:"industry"`
}

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 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