mbtm

package
v0.15.108 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: GPL-3.0 Imports: 9 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 ConfiguredCmsSite added in v0.12.29

func ConfiguredCmsSite(cmsOrgId int, siteId string) error

func CreateEnterprise

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

func CreateEnterpriseDelayPrice

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

func CreateEnterpriseHis added in v0.12.12

func CreateEnterpriseHis(params *CreateEnterpriseHisParams) error
func CreateEnterpriseLink(params *CreateEnterpriseLinkParams) error

func CreateEnterprisePosition added in v0.10.2

func CreateEnterprisePosition(reqParams *CreateEnterprisePositionRequest) (string, error)

func CreateOrgStructure

func CreateOrgStructure(orgName string, enterpriseID string, parentID string, leaderId string, leaderName 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 DeleteEnterprisePosition added in v0.10.2

func DeleteEnterprisePosition(id string) error

func DeleteOrgStructure

func DeleteOrgStructure(enterpriseID string, structureID string) error

func DeleteUserThorough added in v0.15.19

func DeleteUserThorough(userId string) error

func Destroy

func Destroy()

func GetEnterpriseLeader added in v0.12.14

func GetEnterpriseLeader(params *GetEnterpriseLeaderRequest) (string, error)

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 UpdateEnterprisePosition added in v0.10.2

func UpdateEnterprisePosition(reqParams *UpdateEnterprisePositionRequest) error

func UpdateOrgStructure

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

func UpdateOrgUser

func UpdateOrgUser(orgID string, userID string, positionId 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, positionId string, enterpriseID string) error

func UserLeaveOrg

func UserLeaveOrg(userID string, orgID string) error

Types

type AddUserEnterpriseRequest

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

type AdminUser added in v0.12.25

type AdminUser struct {
	EnterpriseID string
	UserID       string
}

func GetEnterpriseAdminUsers added in v0.12.25

func GetEnterpriseAdminUsers(userId string, enterpriseID string) ([]AdminUser, error)

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"`
	Configured   bool   `json:"configured"`
}

func GetCmsOrgInfo added in v0.1.4

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

type ConfiguredCmsSiteRequest added in v0.12.29

type ConfiguredCmsSiteRequest struct {
	CmsOrgId int    `json:"cmsOrgId"`
	SiteId   string `json:"siteId"`
}

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 CreateEnterpriseHisParams added in v0.12.12

type CreateEnterpriseHisParams struct {
	EnterpriseID string `json:"enterpriseId"`
	DeptID       string `json:"deptId"`
	DeptName     string `json:"deptName"`
	ParentID     string `json:"parentId"`
	LeaderID     string `json:"leaderId"`
	LeaderName   string `json:"leaderName"`
	Status       uint8  `json:"status"`
}

type CreateEnterpriseHisResponse added in v0.12.12

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

type CreateEnterpriseLinkParams added in v0.12.12

type CreateEnterpriseLinkParams struct {
	EnterpriseID string `json:"enterpriseId"`
	DeptID       string `json:"deptId"`
	DeptName     string `json:"deptName"`
	ParentID     string `json:"parentId"`
	ParentName   string `json:"parentName"`
	Path         string `json:"path"`
	LeaderID     string `json:"leaderId"`
	LeaderName   string `json:"leaderName"`
	Status       uint8  `json:"status"`
	Date         string `json:"date"`
}

type CreateEnterpriseLinkResponse added in v0.12.12

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

type CreateEnterprisePositionRequest added in v0.10.2

type CreateEnterprisePositionRequest struct {
	OrgID    string `json:"orgId"`
	Position string `json:"position"`
	Sort     int    `json:"sort"`
	Remark   string `json:"remark"`
}

type CreateEnterprisePositionResponse added in v0.10.2

type CreateEnterprisePositionResponse 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"`
	LeaderID     string `json:"leaderId"`
	LeaderName   string `json:"leaderName"`
}

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 DeleteEnterprisePositionRequest added in v0.10.2

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

type DeleteEnterprisePositionResponse added in v0.10.2

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

type DeleteOrgStructureQuery

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

type DeleteUserThoroughRequest added in v0.15.19

type DeleteUserThoroughRequest struct {
	UserId string `json:"userId"`
}

type DeleteUserThoroughResponse added in v0.15.19

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

type DeptInfo added in v0.11.8

type DeptInfo struct {
	ID           string
	OrgName      string
	EnterpriseID string
	LeaderId     string
	LeaderName   string
	ParentID     string
}

func GetDeptByID added in v0.11.8

func GetDeptByID(reqPrams *GetDeptByIDQuery) (*DeptInfo, error)

func GetDeptOfUser added in v0.12.14

func GetDeptOfUser(params *GetOrgOfUserRequest) (*DeptInfo, bool, error)

type DeptUser added in v0.9.2

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

func GetOrgDeptAndUsers added in v0.9.2

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

type DeptUserPosition added in v0.9.41

type DeptUserPosition struct {
	DeptID   string            `json:"deptId"`
	DeptName string            `json:"deptName"`
	Users    []UserAndPosition `json:"users"`
	LeaderID string            `json:"leaderId"`
}

func GetOrgDeptAndUsersAndPosition added in v0.9.41

func GetOrgDeptAndUsersAndPosition(enterpriseID string) ([]*DeptUserPosition, 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 EnterpriseHis added in v0.12.12

type EnterpriseHis struct {
	EnterpriseID string `json:"enterpriseId"`
	DeptID       string `json:"deptId"`
	DeptName     string `json:"deptName"`
	ParentID     string `json:"parentId"`
	LeaderID     string `json:"leaderId"`
	LeaderName   string `json:"leaderName"`
	Status       uint8  `json:"status"`
}

func GetEnterpriseHisPage added in v0.12.12

func GetEnterpriseHisPage(params *GetEnterpriseHisPageParams) ([]EnterpriseHis, 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"`
	DaysRemaining    int     `json:"daysRemaining"`
	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, name string) ([]EnterpriseInfo, error)

func GetUserEnterprises

func GetUserEnterprises(userId string, companyName string, enterpriseID string, pageNo int, pageSize int) ([]EnterpriseInfo, int64, error)
type EnterpriseLink struct {
	EnterpriseID string     `json:"enterpriseId"`
	DeptID       string     `json:"deptId"`
	DeptName     string     `json:"deptName"`
	ParentID     string     `json:"parentId"`
	LeaderID     string     `json:"leaderId"`
	LeaderName   string     `json:"leaderName"`
	Status       uint8      `json:"status"`
	StartDate    *time.Time `json:"startDate"`
	EndDate      *time.Time `json:"endDate"`
}

func GetSnapShotEnterprises added in v0.12.12

func GetSnapShotEnterprises(params *SnapShotEnterpriseQuery) ([]EnterpriseLink, int64, error)

func RangeSnapShotEnterprises added in v0.12.12

func RangeSnapShotEnterprises(params *RangeSnapShotEnterprisesQuery) ([]EnterpriseLink, int64, error)

type EnterprisePositionInfo added in v0.10.2

type EnterprisePositionInfo struct {
	ID       string `json:"id"`
	OrgID    string `json:"orgId"`
	Position string `json:"position"`
	Sort     int    `json:"sort"`
	Remark   string `json:"remark"`
}

func GetEnterprisePosition added in v0.10.2

func GetEnterprisePosition(reqPrams *GetEnterprisePositionQuery) ([]EnterprisePositionInfo, int64, error)

func GetEnterprisePositionByID added in v0.11.7

func GetEnterprisePositionByID(reqPrams *GetEnterprisePositionByIDQuery) (*EnterprisePositionInfo, error)

func GetEnterprisePositionByIDs added in v0.11.7

func GetEnterprisePositionByIDs(reqParams *GetEnterprisePositionByIDsRequest) ([]EnterprisePositionInfo, 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 GetDeptByIDQuery added in v0.11.8

type GetDeptByIDQuery struct {
	ID string `form:"id"`
}

type GetDeptByIDResponse added in v0.11.8

type GetDeptByIDResponse struct {
	DeptInfo *DeptInfo `json:"deptInfo"`
	// contains filtered or unexported fields
}

type GetDeptOfUserResponse added in v0.12.14

type GetDeptOfUserResponse struct {
	HasDept  bool      `json:"hasDept"`
	DeptInfo *DeptInfo `json:"deptInfo"`
	// contains filtered or unexported fields
}

type GetDeptWithUserResult added in v0.15.40

type GetDeptWithUserResult struct {
	DeptId   string            `json:"deptId"`
	DeptName string            `json:"deptName"`
	Title    []SonDept         `json:"title"`
	Users    []UserAndPosition `json:"users"`
	Sons     []SonDept         `json:"sons"`
}

func GetDeptWithUser added in v0.15.40

func GetDeptWithUser(tangentId, deptId string) (*GetDeptWithUserResult, error)

type GetEnterpriseAdminUsersResponse added in v0.12.25

type GetEnterpriseAdminUsersResponse struct {
	Infos []AdminUser `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 GetEnterpriseHisPageParams added in v0.12.12

type GetEnterpriseHisPageParams struct {
	EnterpriseID string `form:"enterpriseId"`
	StartTime    string `form:"startTime"`
	EndTime      string `form:"endTime"`
	PageNo       int    `form:"pageNo"`
	PageSize     int    `form:"pageSize"`
}

type GetEnterpriseHisPageRes added in v0.12.12

type GetEnterpriseHisPageRes struct {
	Infos      []EnterpriseHis `json:"infos"`
	TotalCount int64           `json:"totalCount"`
}

type GetEnterpriseHisPageResponse added in v0.12.12

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

type GetEnterpriseLeaderRequest added in v0.12.14

type GetEnterpriseLeaderRequest struct {
	EnterpriseId string `form:"enterpriseId"`
}

type GetEnterpriseLeaderResponse added in v0.12.14

type GetEnterpriseLeaderResponse struct {
	LeaderId string `json:"leaderId"`
	// contains filtered or unexported fields
}

type GetEnterprisePositionByIDQuery added in v0.11.7

type GetEnterprisePositionByIDQuery struct {
	ID string `form:"id"`
}

type GetEnterprisePositionByIDResponse added in v0.11.7

type GetEnterprisePositionByIDResponse struct {
	Info *EnterprisePositionInfo
	// contains filtered or unexported fields
}

type GetEnterprisePositionByIDsRequest added in v0.11.7

type GetEnterprisePositionByIDsRequest struct {
	IDs []string `json:"ids"`
}

type GetEnterprisePositionByIDsResponse added in v0.11.7

type GetEnterprisePositionByIDsResponse struct {
	Infos []EnterprisePositionInfo `json:"infos" binding:"required"`
	// contains filtered or unexported fields
}

type GetEnterprisePositionQuery added in v0.10.2

type GetEnterprisePositionQuery struct {
	ID       string `form:"id"`
	OrgID    string `form:"orgId"`
	Position string `form:"position"`
	PageNo   int    `form:"pageNo"`
	PageSize int    `form:"pageSize"`
}

type GetEnterprisePositionResponse added in v0.10.2

type GetEnterprisePositionResponse struct {
	PageNo     int                      `json:"pageNo" binding:"required"`
	TotalCount int64                    `json:"totalCount" binding:"required"`
	Infos      []EnterprisePositionInfo `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 GetOrgDeptUserPositionResult added in v0.9.41

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

type GetOrgOfUserRequest added in v0.12.14

type GetOrgOfUserRequest struct {
	UserId       string `form:"userId"`
	EnterpriseId string `form:"enterpriseId"`
}

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 GetSnapShotEnterprisesResponse added in v0.12.12

type GetSnapShotEnterprisesResponse struct {
	Infos      []EnterpriseLink `json:"infos"`
	TotalCount int64
	// 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 GetUserOrgByIdsQuery added in v0.9.51

type GetUserOrgByIdsQuery struct {
	TangentId string   `json:"tangentId"`
	UserIDs   []string `json:"userIds" binding:"required"`
}

type GetUserOrgStructureResponse

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

type GetUsersOrgStructureResponse added in v0.9.51

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

type InfoResponse added in v0.15.40

type InfoResponse[T any] struct {
	Info T `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"`
	LeaderId     string             `json:"leaderId"`
	LeaderName   string             `json:"leaderName"`
	Sons         []OrgStructureInfo `json:"sons"`
}

func GetOrgStructure

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

func GetOrgStructureByDeptID added in v0.13.26

func GetOrgStructureByDeptID(enterpriseID, deptID string) ([]OrgStructureInfo, error)

type OrgUserInfo

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

func GetOrgUser

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

type QuerySnapShotEnterprisesResult added in v0.12.12

type QuerySnapShotEnterprisesResult struct {
	Infos      []EnterpriseLink `json:"infos"`
	TotalCount int64            `json:"totalCount"`
}

type RangeSnapShotEnterprisesQuery added in v0.12.12

type RangeSnapShotEnterprisesQuery struct {
	EnterpriseID string `form:"enterpriseId"`
	DeptID       string `form:"deptId"`
	DeptName     string `form:"deptName"`
	LeaderName   string `form:"leaderName"`
	Status       uint8  `form:"status"`
	StartDate    string `form:"startDate"`
	EndDate      string `form:"endDate"`
	PageNo       int    `form:"pageNo"`
	PageSize     int    `form:"pageSize"`
}

type RangeSnapShotEnterprisesResponse added in v0.12.12

type RangeSnapShotEnterprisesResponse struct {
	Infos      []EnterpriseLink `json:"infos"`
	TotalCount int64
	// contains filtered or unexported fields
}

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 SnapShotEnterpriseQuery added in v0.12.12

type SnapShotEnterpriseQuery struct {
	EnterpriseID string `form:"enterpriseId"`
	DeptID       string `form:"deptId"`
	DeptName     string `form:"deptName"`
	LeaderName   string `form:"leaderName"`
	Status       uint8  `form:"status"`
	SnapShotDate string `form:"snapShotDate"`
	PageNo       int    `form:"pageNo"`
	PageSize     int    `form:"pageSize"`
}

type SnapShotEnterpriseRes added in v0.12.12

type SnapShotEnterpriseRes struct {
	Infos      []EnterpriseLink `json:"infos"`
	TotalCount int64            `json:"totalCount"`
}

type SonDept added in v0.15.40

type SonDept struct {
	DeptId   string `json:"deptId"`
	DeptName string `json:"deptName"`
}

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 UpdateEnterprisePositionRequest added in v0.10.2

type UpdateEnterprisePositionRequest struct {
	ID       string `json:"id"`
	Position string `json:"position"`
	Sort     int    `json:"sort"`
	Remark   string `json:"remark"`
}

type UpdateEnterprisePositionResponse added in v0.10.2

type UpdateEnterprisePositionResponse 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"`
	LeaderID       string `json:"leaderId"`
	LeaderName     string `json:"leaderName"`
}

type UpdateOrgUserRequest

type UpdateOrgUserRequest struct {
	OrgID        string `json:"orgId"`
	UserID       string `json:"userId"`
	PositionID   string `json:"positionId"`
	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 UserAndPosition added in v0.9.41

type UserAndPosition struct {
	UserId       string `json:"userId"`
	UserPosition string `json:"position"`
}

type UserJoinOrgRequest

type UserJoinOrgRequest struct {
	UserID       string `json:"userId" binding:"required"`
	OrgID        string `json:"orgId" binding:"required"`
	PositionID   string `json:"positionId" 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"`
}

type UserOrgStructureInfo

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

func GetUserOrgStructure

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

func GetUserOrgStructures added in v0.9.51

func GetUserOrgStructures(tangentId string, userIds []string) ([]UserOrgStructureInfo, error)

Jump to

Keyboard shortcuts

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