Documentation ¶
Index ¶
- func AddUserEnterprise(reqParams *AddUserEnterpriseRequest) error
- func CreateEnterprise(reqParams *CreateEnterpriseRequest) (string, error)
- func CreateEnterpriseDelayPrice(reqParams *CreateEnterpriseDelayPriceRequest) (string, error)
- func CreateOrgStructure(orgName string, enterpriseID string, parentID string) error
- func CreateRechargeRecord(reqParams *CreateRechargeRecordRequest) error
- func DelUserEnterprise(reqParams *DelUserEnterpriseRequest) error
- func DelayEnterprise(reqParams *DelayEnterpriseRequest) error
- func DeleteEnterprise(enterpriseID string) error
- func DeleteEnterpriseDelayPrice(reqParams *DeleteEnterpriseDelayPriceRequest) error
- func DeleteOrgStructure(enterpriseID string, structureID string) error
- func Destroy()
- func Init(baseUrl string, timeoutSec time.Duration)
- func SetEnterpriseAdopt(reqParams *SetEnterprisesStatusRequest) error
- func SetEnterpriseAuthing(reqParams *SetEnterprisesStatusRequest) error
- func SetEnterpriseRefuse(reqParams *SetEnterprisesStatusRequest) error
- func UpdateEnterprise(reqParams *UpdateEnterpriseRequest) error
- func UpdateEnterpriseDelayPrice(reqParams *UpdateEnterpriseDelayPriceRequest) error
- func UpdateOrgStructure(enterpriseID string, orgStructureID string, orgName string) error
- func UpdateOrgUser(orgID string, userID string, position string, enterpriseID string) error
- func UpdateRechargeRecord(reqParams *UpdateRechargeRecordRequest) error
- func UploadEnterpriseBackground(params *UploadEnterpriseBackgroundRequest) (string, string, error)
- func UploadEnterpriseLogo(face *multipart.FileHeader) (string, string, error)
- func UserJoinOrg(userID string, orgID string, position string, enterpriseID string) error
- func UserLeaveOrg(userID string, orgID string, position string) error
- type AddUserEnterpriseRequest
- type CmsInfo
- type CreateEnterpriseDelayPriceRequest
- type CreateEnterpriseDelayPriceResponse
- type CreateEnterpriseRequest
- type CreateOrgStructureRequest
- type CreateRechargeRecordRequest
- type CreateRechargeRecordResponse
- type DelUserEnterpriseRequest
- type DelayEnterpriseRequest
- type DelayEnterpriseResponse
- type DelayRecordInfo
- type DeleteEnterpriseDelayPriceRequest
- type DeleteEnterpriseDelayPriceResponse
- type DeleteOrgStructureQuery
- type EnterpriseDelayPriceInfo
- type EnterpriseInfo
- func GetEnterprise(companyName string) (*EnterpriseInfo, error)
- func GetEnterprises(enterpriseID string, companyName string, contactPhone string, ...) ([]EnterpriseInfo, int64, error)
- func GetEnterprisesByIDs(ids []string) ([]EnterpriseInfo, error)
- func GetUserEnterprises(userId string, enterpriseID string, pageNo int, pageSize int) ([]EnterpriseInfo, int64, error)
- type GetCmsOrgInfoResponse
- type GetDelayRecordsQuery
- type GetDelayRecordsResponse
- type GetEnterpriseDelayPriceQuery
- type GetEnterpriseDelayPricesResponse
- type GetOrgStructureQuery
- type GetOrgStructureResponse
- type GetOrgUserQuery
- type GetOrgUserResponse
- type GetRechargeRecordQuery
- type GetRechargeRecordResponse
- type GetUserOrgStructureResponse
- type OrgStructureInfo
- type OrgUserInfo
- type RecordInfo
- type SetEnterprisesStatusRequest
- type UpdateEnterpriseDelayPriceRequest
- type UpdateEnterpriseDelayPriceResponse
- type UpdateEnterpriseRequest
- type UpdateOrgStructureRequest
- type UpdateOrgUserRequest
- type UpdateRechargeRecordRequest
- type UpdateRechargeRecordResponse
- type UploadEnterpriseBackgroundRequest
- type UploadEnterpriseBackgroundResponse
- type UserJoinOrgRequest
- type UserLeaveOrgRequest
- type UserOrgStructureInfo
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 CreateRechargeRecord ¶
func CreateRechargeRecord(reqParams *CreateRechargeRecordRequest) error
func DelUserEnterprise ¶
func DelUserEnterprise(reqParams *DelUserEnterpriseRequest) error
func DelayEnterprise ¶
func DelayEnterprise(reqParams *DelayEnterpriseRequest) error
func DeleteEnterprise ¶
func DeleteEnterpriseDelayPrice ¶
func DeleteEnterpriseDelayPrice(reqParams *DeleteEnterpriseDelayPriceRequest) error
func DeleteOrgStructure ¶
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 UpdateOrgUser ¶
func UpdateRechargeRecord ¶
func UpdateRechargeRecord(reqParams *UpdateRechargeRecordRequest) error
func UploadEnterpriseBackground ¶
func UploadEnterpriseBackground(params *UploadEnterpriseBackgroundRequest) (string, string, error)
func UploadEnterpriseLogo ¶
func UploadEnterpriseLogo(face *multipart.FileHeader) (string, string, error)
func UserJoinOrg ¶
Types ¶
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
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 CreateRechargeRecordResponse ¶
type CreateRechargeRecordResponse struct {
// contains filtered or unexported fields
}
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"` Logo string `json:"logo"` 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 GetEnterprisesByIDs ¶
func GetEnterprisesByIDs(ids []string) ([]EnterpriseInfo, error)
func GetUserEnterprises ¶
type GetCmsOrgInfoResponse ¶ added in v0.1.4
type GetCmsOrgInfoResponse struct { Info *CmsInfo `json:"info"` // contains filtered or unexported fields }
type GetDelayRecordsQuery ¶
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 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 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 ¶
func GetOrgUser ¶
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"` Logo string `json:"logo"` 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 UpdateOrgUserRequest ¶
type UpdateRechargeRecordResponse ¶
type UpdateRechargeRecordResponse struct {
// contains filtered or unexported fields
}
type UploadEnterpriseBackgroundRequest ¶
type UploadEnterpriseBackgroundRequest struct {
Background *multipart.FileHeader `form:"background" binding:"required"`
}
type UserJoinOrgRequest ¶
type UserLeaveOrgRequest ¶
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)
Click to show internal directories.
Click to hide internal directories.