mbpm

package
v0.15.29 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 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 AuthCommunication added in v0.15.4

func AuthCommunication(req CommunicationAuthInfo) error

func CreateCommunication added in v0.14.9

func CreateCommunication(req Communication) 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 CreateStakeholder added in v0.14.9

func CreateStakeholder(req Stakeholder) error

func DelStakeholder added in v0.14.9

func DelStakeholder(req Stakeholder) error

func DeleteCommunication added in v0.14.9

func DeleteCommunication(req Communication) 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 StakeholderBindCustomer added in v0.14.9

func StakeholderBindCustomer(param BindCustomerParam) error

func StakeholderBindProject added in v0.14.9

func StakeholderBindProject(req BindProjectParam) error

func UpdateCustomer

func UpdateCustomer(req *UpdateCustomerRequest) error

func UpdateProject

func UpdateProject(req *UpdateProjectRequest) error

func UptCommunication added in v0.14.9

func UptCommunication(req Communication) error

func UptStakeholder added in v0.14.9

func UptStakeholder(req Stakeholder) 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 BindCustomerParam added in v0.14.9

type BindCustomerParam struct {
	CompanyId     string `json:"companyId"`
	StakeholderId string `json:"stakeholderId"`
	CustomerId    string `json:"customerId"`
}

type BindProjectDetail added in v0.14.11

type BindProjectDetail struct {
	CompanyId             string `json:"companyId"`
	ProjectId             string `json:"projectId"`
	StakeholderId         string `json:"stakeholderId"`
	Role                  string `json:"role"`
	Influence             string `json:"influence"`
	Interest              string `json:"interest"`
	ImpactLinks           string `json:"impactLinks"`
	CommunicationStrategy string `json:"communicationStrategy"`
	Remark                string `json:"remark"`
}

type BindProjectParam added in v0.14.9

type BindProjectParam struct {
	CompanyId string              `json:"companyId"`
	ProjectId string              `json:"projectId"`
	Info      []BindProjectDetail `json:"info"`
}

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 Communication added in v0.14.9

type Communication struct {
	ID                    string `form:"id" json:"id"`
	ProjectId             string `form:"projectId" json:"projectId"`
	ProjectName           string `form:"projectName" json:"projectName"`
	StakeholderId         string `form:"stakeholderId" json:"stakeholderId"`
	StakeholderName       string `form:"stakeholderName" json:"stakeholderName"`
	CommunicationDate     string `form:"communicationDate" json:"communicationDate"`
	CommunicationLocation string `form:"communicationLocation" json:"communicationLocation"`
	CommunicationDuration string `form:"communicationDuration" json:"communicationDuration"`
	CommunicationForm     string `form:"communicationForm" json:"communicationForm"`
	CommunicationContent  string `form:"communicationContent" json:"communicationContent"`
	Remark                string `form:"remark" json:"remark"`
	UserId                string `form:"userId" json:"userId"`
	Username              string `form:"username" json:"username"`
	CompanyId             string `form:"companyId" json:"companyId"`
	CreatedAt             string `json:"createdAt"`
}

type CommunicationAuth added in v0.15.4

type CommunicationAuth struct {
	UserId string `validator:"required,len=32" json:"userId"`
	Auth   uint8  `validator:"required" json:"auth"`
}

type CommunicationAuthInfo added in v0.15.4

type CommunicationAuthInfo struct {
	CompanyId string              `validator:"required,len=32" json:"companyId"`
	Info      []CommunicationAuth `json:"info"`
}

func GetCommunicationAuth added in v0.15.4

func GetCommunicationAuth(companyId string) (*CommunicationAuthInfo, error)

type CommunicationProjectsResponse added in v0.15.7

type CommunicationProjectsResponse struct {
	Info []ProjectInfo `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 GetCommunicationAuthResponse added in v0.15.4

type GetCommunicationAuthResponse struct {
	*CommunicationAuthInfo
	// contains filtered or unexported fields
}

type GetCommunicationParam added in v0.14.9

type GetCommunicationParam struct {
	Communication
	PageNo   int `json:"pageNo" form:"pageNo"`
	PageSize int `json:"pageSize" form:"pageSize"`
}

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 GetStakeholderParam added in v0.14.9

type GetStakeholderParam struct {
	Stakeholder
	PageNo   int `form:"pageNo" json:"pageNo"`
	PageSize int `form:"pageSize" json:"pageSize"`
}

type GetStakeholdersRelevancyParam added in v0.14.9

type GetStakeholdersRelevancyParam struct {
	CompanyId     string `form:"companyId"`
	StakeholderId string `form:"stakeholderId"`
	RelevancyId   string `form:"id"`
	PageNo        int    `form:"pageNo"`
	PageSize      int    `form:"pageSize"`
}

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 OssObj added in v0.14.9

type OssObj struct {
	Url     string `json:"url"`
	ObjName string `json:"objName"`
}

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 CommunicationProjects added in v0.15.7

func CommunicationProjects(companyId, userId string) ([]ProjectInfo, error)

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 Result added in v0.14.9

type Result[T any] struct {
	Info       []T   `json:"info"`
	TotalCount int64 `json:"totalCount"`
	PageNo     int   `json:"pageNo"`
}

func CustomerStakeholders added in v0.14.9

func CustomerStakeholders(req GetStakeholdersRelevancyParam) (Result[StakeholderInfo], error)

func GetCommunication added in v0.14.9

func GetCommunication(req GetCommunicationParam) (Result[Communication], error)

func GetStakeholder added in v0.14.9

func GetStakeholder(req GetStakeholderParam) (Result[StakeholderInfo], error)

func ProjectStakeholders added in v0.14.9

func StakeholdersProjects added in v0.15.5

type ResultResponse added in v0.14.9

type ResultResponse[T any] struct {
	Result[T]
	// contains filtered or unexported fields
}

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 Stakeholder added in v0.14.9

type Stakeholder struct {
	ID                string `form:"id" json:"id"`
	EnterpriseName    string `form:"enterpriseName" json:"enterpriseName"`
	Name              string `form:"name" json:"name"`
	Sex               uint8  `form:"sex" json:"sex"`
	Dept              string `form:"dept" json:"dept"`
	Position          string `form:"position" json:"position"`
	ContactPhone      string `form:"contactPhone" json:"contactPhone"`
	OfficePhone       string `form:"officePhone" json:"officePhone"`
	Email             string `form:"email" json:"email"`
	Photo             string `form:"photo" json:"photo"`
	PersonalityTraits string `form:"personalityTraits" json:"personalityTraits"`
	Hobbies           string `form:"hobbies" json:"hobbies"`
	Remark            string `form:"remark" json:"remark"`
	CompanyId         string `form:"companyId" json:"companyId"`
}

type StakeholderInfo added in v0.14.9

type StakeholderInfo struct {
	ID                string   `json:"id"`
	EnterpriseName    string   `json:"enterpriseName"`
	Name              string   `json:"name"`
	Sex               uint8    `json:"sex"`
	Dept              string   `json:"dept"`
	Position          string   `json:"position"`
	ContactPhone      string   `json:"contactPhone"`
	OfficePhone       string   `json:"officePhone"`
	Email             string   `json:"email"`
	Photo             []OssObj `json:"photo"`
	PersonalityTraits string   `json:"personalityTraits"`
	Hobbies           string   `json:"hobbies"`
	Remark            string   `json:"remark"`
	CompanyId         string   `json:"companyId"`
}

type StakeholdersProjectInfo added in v0.14.14

type StakeholdersProjectInfo struct {
	ID                    string `json:"id"`
	StakeholderId         string `json:"stakeholderId"`
	StakeholderName       string `json:"stakeholderName"`
	ProjectId             string `json:"projectId"`
	ProjectName           string `json:"projectName"`
	Role                  string `json:"role"`
	Influence             string `json:"influence"`
	Interest              string `json:"interest"`
	ImpactLinks           string `json:"impactLinks"`
	CommunicationStrategy string `json:"communicationStrategy"`
	Remark                string `json:"remark"`
}

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