mbpm

package
v0.8.11 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCustomer

func CreateCustomer(req *CustomerInfo) (string, error)

func CreateProject

func CreateProject(req *CreateProjectRequest) (string, error)

func DeleteCustomer

func DeleteCustomer(id string) error

func DeleteProject

func DeleteProject(id string) error

func Destroy

func Destroy()

func Init

func Init(baseUrl string, timeoutSec time.Duration)

func UpdateCustomer

func UpdateCustomer(req *UpdateCustomerRequest) error

func UpdateProject

func UpdateProject(req *UpdateProjectRequest) error

Types

type CreateCustomerResponse

type CreateCustomerResponse struct {
	ID string `json:"id"`
	// 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 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 GetProjectInfoByIdResponse

type GetProjectInfoByIdResponse struct {
	ProjectInfo
	// contains filtered or unexported fields
}

type GetProjectInfosResponse

type GetProjectInfosResponse struct {
	PagingProjectInfos
	// 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 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"`
}

func GetProjectInfoById

func GetProjectInfoById(id string) (*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 {
	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 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