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) error
- func DeleteProject(id 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 CreateCustomerResponse
- type CreateProjectRecentRequest
- type CreateProjectRecentResponse
- type CreateProjectRequest
- type CreateProjectResponse
- type CustomerInfo
- type CustomerInfoEntity
- type DeleteCustomerResponse
- type DeleteProjectResponse
- type DictResponse
- type DictValue
- type GetCustomerInfoByIdResponse
- type GetCustomerInfosResponse
- type GetFavQuery
- type GetProjectInfoByIdResponse
- type GetProjectInfosResponse
- type GetSortedProjectRequest
- 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)
- type ProjectInfo
- type QueryCustomerParam
- type QueryProjectRequest
- 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 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"`
}
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"`
}
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 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 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)
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"`
}
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 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 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.