mbpm

package
v0.13.71 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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 DeleteCustomer(id string, memberId, memberName string) error

func DeleteProject

func DeleteProject(id string, memberId, memberName string) error

func Destroy

func Destroy()

func Init

func Init(baseUrl string, timeoutSec time.Duration)

func RmFav added in v0.9.8

func RmFav(companyId, userId, projectId string) error

func UpdateCustomer

func UpdateCustomer(req *UpdateCustomerRequest) error

func UpdateProject

func UpdateProject(req *UpdateProjectRequest) error

Types

type AddFavRequest added in v0.9.8

type AddFavRequest struct {
	CompanyId string `json:"companyId"`
	UserId    string `json:"userId"`
	ProjectId string `json:"projectId"`
}

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 CreateProjectRecentRequest struct {
	ProjectID string `json:"projectId"`
	MemberID  string `json:"memberId"`
	CompanyID string `json:"companyId"`
}

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 CustomerLifecycleQuery struct {
	CompanyId  string `form:"companyId"`
	CustomerId string `form:"customerId"`
	PageNo     int    `form:"pageNo"`
	PageSize   int    `form:"pageSize"`
}

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 DictValue

type DictValue struct {
	Value string `json:"value"`
	Order uint   `json:"order"`
}

func GetBusinessLine

func GetBusinessLine() ([]DictValue, error)

func GetProjectStatus

func GetProjectStatus() ([]DictValue, error)

func GetProjectType

func GetProjectType() ([]DictValue, error)

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 GetFavQuery struct {
	CompanyId string `form:"companyId"`
	UserId    string `form:"userId"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
}

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 GetSortedProjectRequest struct {
	MemberId    string `form:"memberId"`
	CompanyId   string `form:"companyId"`
	ProjectName string `form:"projectName"`
}

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
}

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 ProjectLifecycleQuery struct {
	CompanyId string `form:"companyId"`
	ProjectId string `form:"projectId"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
}

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 ResponsibleProjectsQuery struct {
	CompanyId string `form:"companyId"`
	ProjectId string `form:"projectId"`
	UserId    string `form:"userId"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
}

type RmFavRequest added in v0.9.8

type RmFavRequest struct {
	CompanyId string `json:"companyId"`
	UserId    string `json:"userId"`
	ProjectId string `json:"projectId"`
}

type RmFavResponse added in v0.9.8

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

type SortedProjectInfoByIdsRequest added in v0.9.9

type SortedProjectInfoByIdsRequest struct {
	CompanyId  string `form:"companyId"`
	UserId     string `form:"userId"`
	ProjectIds string `form:"projectIds"`
}

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
}

Jump to

Keyboard shortcuts

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