Documentation ¶
Index ¶
- func AddFav(req *AddFavRequest) error
- func CreateCustomer(req *CustomerInfo) (string, error)
- func CreateProject(req *CreateProjectRequest) (string, error)
- func CreateProjectRecent(req *CreateProjectRecentRequest) error
- func DeleteCustomer(id string, memberId, memberName string) error
- func DeleteProject(id string, memberId, memberName string) error
- func Destroy()
- func Init(baseUrl string, timeoutSec time.Duration)
- func RmFav(companyId, userId, projectId string) error
- func UpdateCustomer(req *UpdateCustomerRequest) error
- func UpdateProject(req *UpdateProjectRequest) error
- type AddFavRequest
- type AddFavResponse
- type BusinessLineInfo
- type BusinessLineResponse
- type CreateCustomerResponse
- type CreateProjectRecentRequest
- type CreateProjectRecentResponse
- type CreateProjectRequest
- type CreateProjectResponse
- type CustomerInfo
- type CustomerInfoEntity
- type CustomerLifecycleQuery
- type DeleteCustomerResponse
- type DeleteProjectResponse
- type DictResponse
- type DictValue
- type GetCustomerInfoByIdResponse
- type GetCustomerInfosResponse
- type GetFavQuery
- type GetProjectInfoByIdResponse
- type GetProjectInfosResponse
- type GetSortedProjectRequest
- type LifecycleInfo
- type LifecycleResponse
- type PagingCustomerInfoEntity
- type PagingProjectInfos
- func GetBaseProjectInfos(req *QueryProjectRequest) (*PagingProjectInfos, error)
- func GetFav(req *GetFavQuery) (*PagingProjectInfos, error)
- func GetOtherStatusInfos(companyId, userId string, status []string, pageNo, pageSize int) (*PagingProjectInfos, error)
- func GetProjectInfos(req *QueryProjectRequest) (*PagingProjectInfos, error)
- func ParticipateProjects(req *ResponsibleProjectsQuery) (*PagingProjectInfos, error)
- func ResponsibleProjects(req *ResponsibleProjectsQuery) (*PagingProjectInfos, error)
- type ProjectInfo
- type ProjectLifecycleQuery
- type QueryCustomerParam
- type QueryProjectRequest
- type ResponsibleProjectsQuery
- type RmFavRequest
- type RmFavResponse
- type SortedProjectInfoByIdsRequest
- type SortedProjectResponse
- type UpdateCustomerRequest
- type UpdateCustomerResponse
- type UpdateProjectRequest
- type UpdateProjectResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFav ¶ added in v0.9.8
func AddFav(req *AddFavRequest) error
func CreateCustomer ¶
func CreateCustomer(req *CustomerInfo) (string, error)
func CreateProject ¶
func CreateProject(req *CreateProjectRequest) (string, error)
func CreateProjectRecent ¶ added in v0.9.8
func CreateProjectRecent(req *CreateProjectRecentRequest) error
func DeleteCustomer ¶
func DeleteProject ¶
func UpdateCustomer ¶
func UpdateCustomer(req *UpdateCustomerRequest) error
func UpdateProject ¶
func UpdateProject(req *UpdateProjectRequest) error
Types ¶
type AddFavRequest ¶ added in v0.9.8
type AddFavResponse ¶ added in v0.9.8
type AddFavResponse struct {
// contains filtered or unexported fields
}
type BusinessLineInfo ¶ added in v0.12.24
type BusinessLineInfo struct { Value string `json:"value"` Order uint `json:"order"` TangentId string `json:"tangentId"` }
func GetBusinessLineV2 ¶ added in v0.12.24
func GetBusinessLineV2(tangentId string) ([]BusinessLineInfo, error)
type BusinessLineResponse ¶ added in v0.12.24
type BusinessLineResponse struct { Info []BusinessLineInfo `json:"info"` // contains filtered or unexported fields }
type CreateCustomerResponse ¶
type CreateCustomerResponse struct { ID string `json:"id"` // contains filtered or unexported fields }
type CreateProjectRecentRequest ¶ added in v0.9.8
type CreateProjectRecentResponse ¶ added in v0.9.8
type CreateProjectRecentResponse struct {
// contains filtered or unexported fields
}
type CreateProjectRequest ¶
type CreateProjectRequest struct { Name string `json:"name,omitempty"` Code string `json:"code,omitempty"` Status string `json:"status,omitempty"` BusinessLine string `json:"businessLine,omitempty"` ProjectType string `json:"projectType,omitempty"` ProjectManager string `json:"projectManager,omitempty"` ExecuteProvince string `json:"executeProvince,omitempty"` ExecuteCity string `json:"executeCity,omitempty"` ExecuteAddress string `json:"executeAddress,omitempty"` LaunchDate string `json:"launchDate"` Salesman string `json:"salesman,omitempty"` CustomerId string `json:"customerId,omitempty"` Remark string `json:"remark,omitempty"` CompanyId string `json:"companyId"` ProjectLeader []string `json:"projectLeader"` TechnicalManager []string `json:"technicalManager"` TeamMembers []string `json:"teamMembers"` EstimatedEndDate string `json:"estimatedEndDate"` ActualEndDate string `json:"actualEndDate"` BudgetCosts float64 `json:"budgetCosts"` MemberId string `json:"memberId"` MemberName string `json:"memberName"` ProjectManagerName string `json:"projectManagerName"` LeaderNames []string `json:"leaderNames"` TechnicalNames []string `json:"technicalNames"` MemberNames []string `json:"memberNames"` SalesmanName string `json:"salesmanName"` }
type CreateProjectResponse ¶
type CreateProjectResponse struct { ID string `json:"id"` // contains filtered or unexported fields }
type CustomerInfo ¶
type CustomerInfo struct { Name string `json:"name"` ShortName string `json:"shortName"` OwnershipCategory string `json:"ownershipCategory"` CustomerCategory string `json:"customerCategory"` IndustryCategory string `json:"industryCategory"` SocialCreditCode string `json:"socialCreditCode"` Province string `json:"province"` City string `json:"city"` Address string `json:"address"` CoreCustomer bool `json:"coreCustomer"` Remark string `json:"remark"` CompanyId string `json:"companyId"` MemberId string `json:"memberId"` MemberName string `json:"memberName"` }
type CustomerInfoEntity ¶
type CustomerInfoEntity struct { ID string `json:"id"` Name string `json:"name"` ShortName string `json:"shortName"` OwnershipCategory string `json:"ownershipCategory"` CustomerCategory string `json:"customerCategory"` IndustryCategory string `json:"industryCategory"` SocialCreditCode string `json:"socialCreditCode"` Province string `json:"province"` City string `json:"city"` Address string `json:"address"` CoreCustomer bool `json:"coreCustomer"` Remark string `json:"remark"` }
func GetCustomerInfoById ¶
func GetCustomerInfoById(id string) (*CustomerInfoEntity, error)
type CustomerLifecycleQuery ¶ added in v0.13.42
type DeleteCustomerResponse ¶
type DeleteCustomerResponse struct {
// contains filtered or unexported fields
}
type DeleteProjectResponse ¶
type DeleteProjectResponse struct {
// contains filtered or unexported fields
}
type DictResponse ¶
type DictResponse struct { Dict []DictValue `json:"dict"` // contains filtered or unexported fields }
type GetCustomerInfoByIdResponse ¶
type GetCustomerInfoByIdResponse struct { CustomerInfoEntity // contains filtered or unexported fields }
type GetCustomerInfosResponse ¶
type GetCustomerInfosResponse struct { PagingCustomerInfoEntity // contains filtered or unexported fields }
type GetFavQuery ¶ added in v0.9.8
type GetProjectInfoByIdResponse ¶
type GetProjectInfoByIdResponse struct { ProjectInfo // contains filtered or unexported fields }
type GetProjectInfosResponse ¶
type GetProjectInfosResponse struct { PagingProjectInfos // contains filtered or unexported fields }
type GetSortedProjectRequest ¶ added in v0.9.8
type LifecycleInfo ¶ added in v0.13.42
type LifecycleInfo struct { Info []string `json:"info"` PageNo int `json:"pageNo"` TotalCount int64 `json:"totalCount"` }
func CustomerLifecycle ¶ added in v0.13.42
func CustomerLifecycle(req *CustomerLifecycleQuery) (*LifecycleInfo, error)
func ProjectLifecycle ¶ added in v0.13.42
func ProjectLifecycle(req *ProjectLifecycleQuery) (*LifecycleInfo, error)
type LifecycleResponse ¶ added in v0.13.42
type LifecycleResponse struct { *LifecycleInfo // contains filtered or unexported fields }
type PagingCustomerInfoEntity ¶
type PagingCustomerInfoEntity struct { Count int64 PageNo int Infos []CustomerInfoEntity }
func GetCustomerInfos ¶
func GetCustomerInfos(req *QueryCustomerParam) (*PagingCustomerInfoEntity, error)
type PagingProjectInfos ¶
type PagingProjectInfos struct { Infos []ProjectInfo `json:"infos"` Count int64 `json:"count"` PageNo int `json:"pageNo"` }
func GetBaseProjectInfos ¶ added in v0.9.41
func GetBaseProjectInfos(req *QueryProjectRequest) (*PagingProjectInfos, error)
func GetFav ¶ added in v0.9.8
func GetFav(req *GetFavQuery) (*PagingProjectInfos, error)
func GetOtherStatusInfos ¶ added in v0.11.1
func GetOtherStatusInfos(companyId, userId string, status []string, pageNo, pageSize int) (*PagingProjectInfos, error)
func GetProjectInfos ¶
func GetProjectInfos(req *QueryProjectRequest) (*PagingProjectInfos, error)
func ParticipateProjects ¶ added in v0.13.23
func ParticipateProjects(req *ResponsibleProjectsQuery) (*PagingProjectInfos, error)
func ResponsibleProjects ¶ added in v0.13.23
func ResponsibleProjects(req *ResponsibleProjectsQuery) (*PagingProjectInfos, error)
type ProjectInfo ¶
type ProjectInfo struct { ID string `json:"id"` Name string `json:"name"` Code string `json:"code"` Status string `json:"status"` BusinessLine string `json:"businessLine"` ProjectType string `json:"projectType"` ProjectManager string `json:"projectManager"` ExecuteProvince string `json:"executeProvince"` ExecuteCity string `json:"executeCity"` ExecuteAddress string `json:"executeAddress"` LaunchDate string `json:"launchDate"` Salesman string `json:"salesman"` CustomerName string `json:"customerName"` CustomerId string `json:"customerId"` Remark string `json:"remark"` IsFav bool `json:"isFav"` ProjectLeader []string `json:"projectLeader"` TechnicalManager []string `json:"technicalManager"` TeamMembers []string `json:"teamMembers"` EstimatedEndDate string `json:"estimatedEndDate"` ActualEndDate string `json:"actualEndDate"` BudgetCosts float64 `json:"budgetCosts"` }
func GetProjectInfoById ¶
func GetProjectInfoById(companyId, userId, projectId string) (*ProjectInfo, error)
func GetSortedProjectInfo ¶ added in v0.9.8
func GetSortedProjectInfo(req *GetSortedProjectRequest) ([]ProjectInfo, error)
func SortedProjectInfoByIds ¶ added in v0.9.9
func SortedProjectInfoByIds(req *SortedProjectInfoByIdsRequest) ([]ProjectInfo, error)
type ProjectLifecycleQuery ¶ added in v0.13.42
type QueryCustomerParam ¶
type QueryCustomerParam struct { ID string `form:"id,omitempty"` Name string `form:"name,omitempty"` ShortName string `form:"shortName,omitempty"` OwnershipCategory string `form:"ownershipCategory,omitempty"` Province string `form:"province,omitempty"` City string `form:"city,omitempty"` CompanyId string `form:"companyId,omitempty"` PageNo int `form:"pageNo,omitempty"` PageSize int `form:"pageSize,omitempty"` }
type QueryProjectRequest ¶
type QueryProjectRequest struct { UserId string `form:"userId"` ID string `form:"id,omitempty"` Name string `form:"name,omitempty"` Code string `form:"code,omitempty"` BusinessLine string `form:"businessLine,omitempty"` CustomerId string `form:"customerId,omitempty"` Manager string `form:"manager,omitempty"` Status string `form:"status,omitempty"` Salesman string `form:"salesman,omitempty"` LowerLaunchDate string `form:"lowerLaunchDate,omitempty"` UpperLaunchDate string `form:"upperLaunchDate,omitempty"` CompanyId string `form:"companyId,omitempty"` PageNo int `form:"pageNo,omitempty"` PageSize int `form:"pageSize,omitempty"` }
type ResponsibleProjectsQuery ¶ added in v0.13.23
type RmFavRequest ¶ added in v0.9.8
type RmFavResponse ¶ added in v0.9.8
type RmFavResponse struct {
// contains filtered or unexported fields
}
type SortedProjectInfoByIdsRequest ¶ added in v0.9.9
type SortedProjectResponse ¶ added in v0.9.8
type SortedProjectResponse struct { Projects []ProjectInfo `json:"projects"` // contains filtered or unexported fields }
type UpdateCustomerRequest ¶
type UpdateCustomerRequest struct { ID string `json:"id"` CustomerInfo }
type UpdateCustomerResponse ¶
type UpdateCustomerResponse struct {
// contains filtered or unexported fields
}
type UpdateProjectRequest ¶
type UpdateProjectRequest struct { ID string `json:"id"` CreateProjectRequest }
type UpdateProjectResponse ¶
type UpdateProjectResponse struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.