larkmdm

package
v3.4.6-beta.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 4 Imported by: 5

Documentation

Index

Constants

View Source
const (
	UserIdTypeUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeUnbindUserAuthDataRelationUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUnbindUserAuthDataRelationUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeUnbindUserAuthDataRelationOpenId  = "open_id"  // 以open_id来识别用户
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Appendix

type Appendix struct {
	FileId *string `json:"file_id,omitempty"` // 文件id(文件的唯一标识)

	FileName *string `json:"file_name,omitempty"` // 文件名称

	FileType *string `json:"file_type,omitempty"` // 文件类型

	FileSize *int `json:"file_size,omitempty"` // 文件大小

	DownloadUrl *string `json:"download_url,omitempty"` // 文件下载地址
}

type AppendixBuilder

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

func NewAppendixBuilder

func NewAppendixBuilder() *AppendixBuilder

func (*AppendixBuilder) Build

func (builder *AppendixBuilder) Build() *Appendix

func (*AppendixBuilder) DownloadUrl

func (builder *AppendixBuilder) DownloadUrl(downloadUrl string) *AppendixBuilder

文件下载地址

示例值:http://download.com/xxxxx

func (*AppendixBuilder) FileId

func (builder *AppendixBuilder) FileId(fileId string) *AppendixBuilder

文件id(文件的唯一标识)

示例值:5c7237e821a8409d9b8b2e1041cdc9a4

func (*AppendixBuilder) FileName

func (builder *AppendixBuilder) FileName(fileName string) *AppendixBuilder

文件名称

示例值:附件

func (*AppendixBuilder) FileSize

func (builder *AppendixBuilder) FileSize(fileSize int) *AppendixBuilder

文件大小

示例值:1024

func (*AppendixBuilder) FileType

func (builder *AppendixBuilder) FileType(fileType string) *AppendixBuilder

文件类型

示例值:DOX

type BindUserAuthDataRelationReq

type BindUserAuthDataRelationReq struct {
	UserAuthDataRelation *UserAuthDataRelation `body:""`
	// contains filtered or unexported fields
}

type BindUserAuthDataRelationReqBuilder

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

func NewBindUserAuthDataRelationReqBuilder

func NewBindUserAuthDataRelationReqBuilder() *BindUserAuthDataRelationReqBuilder

func (*BindUserAuthDataRelationReqBuilder) Build

func (*BindUserAuthDataRelationReqBuilder) UserAuthDataRelation

func (builder *BindUserAuthDataRelationReqBuilder) UserAuthDataRelation(userAuthDataRelation *UserAuthDataRelation) *BindUserAuthDataRelationReqBuilder

通过该接口,可为指定应用下的用户绑定一类数据维度,支持批量给多个用户同时增量授权。

func (*BindUserAuthDataRelationReqBuilder) UserIdType

此次调用中使用的用户ID的类型

示例值:

type BindUserAuthDataRelationResp

type BindUserAuthDataRelationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*BindUserAuthDataRelationResp) Success

func (resp *BindUserAuthDataRelationResp) Success() bool

type Company

type Company struct {
	CompanyCode *string `json:"company_code,omitempty"` // 公司编码

	CompanyName *string `json:"company_name,omitempty"` // 公司名称

	CompanyUid *string `json:"company_uid,omitempty"` // 公司唯一ID

	LegalEntityCode *string `json:"legal_entity_code,omitempty"` // 法人实体编码

	CoAreaCode *string `json:"co_area_code,omitempty"` // 控制范围编码

	CurrencyCode *string `json:"currency_code,omitempty"` // 币种三字码

	CountryCode *string `json:"country_code,omitempty"` // 国家二字码

	CompanyNameEn *string `json:"company_name_en,omitempty"` // 公司英文名
}

type CompanyAsset

type CompanyAsset struct {
	AssetUid *string `json:"asset_uid,omitempty"` // 资产唯一ID

	AssetSubNo *string `json:"asset_sub_no,omitempty"` // 资产子编码

	AssetType *string `json:"asset_type,omitempty"` // 资产类型编码

	AssetTypeName *string `json:"asset_type_name,omitempty"` // 资产类型描述

	AssetName *string `json:"asset_name,omitempty"` // 资产描述

	Quantity *int `json:"quantity,omitempty"` // 资产数量

	Unit *string `json:"unit,omitempty"` // 资产计量单位

	CompanyUid *string `json:"company_uid,omitempty"` // 资产所属公司的唯一ID

	AssetTypeNameEn *string `json:"asset_type_name_en,omitempty"` // 资产类型英文描述

	AssetNo *string `json:"asset_no,omitempty"` // 资产编码
}

type CompanyAssetBuilder

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

func NewCompanyAssetBuilder

func NewCompanyAssetBuilder() *CompanyAssetBuilder

func (*CompanyAssetBuilder) AssetName

func (builder *CompanyAssetBuilder) AssetName(assetName string) *CompanyAssetBuilder

资产描述

示例值:设计类软件AutoCAD

func (*CompanyAssetBuilder) AssetNo

func (builder *CompanyAssetBuilder) AssetNo(assetNo string) *CompanyAssetBuilder

资产编码

示例值:100010010001

func (*CompanyAssetBuilder) AssetSubNo

func (builder *CompanyAssetBuilder) AssetSubNo(assetSubNo string) *CompanyAssetBuilder

资产子编码

示例值:0

func (*CompanyAssetBuilder) AssetType

func (builder *CompanyAssetBuilder) AssetType(assetType string) *CompanyAssetBuilder

资产类型编码

示例值:1000

func (*CompanyAssetBuilder) AssetTypeName

func (builder *CompanyAssetBuilder) AssetTypeName(assetTypeName string) *CompanyAssetBuilder

资产类型描述

示例值:设计软件

func (*CompanyAssetBuilder) AssetTypeNameEn

func (builder *CompanyAssetBuilder) AssetTypeNameEn(assetTypeNameEn string) *CompanyAssetBuilder

资产类型英文描述

示例值:Fixed assets

func (*CompanyAssetBuilder) AssetUid

func (builder *CompanyAssetBuilder) AssetUid(assetUid string) *CompanyAssetBuilder

资产唯一ID

示例值:U1404709301842354176

func (*CompanyAssetBuilder) Build

func (builder *CompanyAssetBuilder) Build() *CompanyAsset

func (*CompanyAssetBuilder) CompanyUid

func (builder *CompanyAssetBuilder) CompanyUid(companyUid string) *CompanyAssetBuilder

资产所属公司的唯一ID

示例值:U1404700168376295424

func (*CompanyAssetBuilder) Quantity

func (builder *CompanyAssetBuilder) Quantity(quantity int) *CompanyAssetBuilder

资产数量

示例值:40

func (*CompanyAssetBuilder) Unit

func (builder *CompanyAssetBuilder) Unit(unit string) *CompanyAssetBuilder

资产计量单位

示例值:Suit

type CompanyBuilder

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

func NewCompanyBuilder

func NewCompanyBuilder() *CompanyBuilder

func (*CompanyBuilder) Build

func (builder *CompanyBuilder) Build() *Company

func (*CompanyBuilder) CoAreaCode

func (builder *CompanyBuilder) CoAreaCode(coAreaCode string) *CompanyBuilder

控制范围编码

示例值:HL00

func (*CompanyBuilder) CompanyCode

func (builder *CompanyBuilder) CompanyCode(companyCode string) *CompanyBuilder

公司编码

示例值:9011

func (*CompanyBuilder) CompanyName

func (builder *CompanyBuilder) CompanyName(companyName string) *CompanyBuilder

公司名称

示例值:xxx科技有限公司

func (*CompanyBuilder) CompanyNameEn

func (builder *CompanyBuilder) CompanyNameEn(companyNameEn string) *CompanyBuilder

公司英文名

示例值:Bei**n**S**g**n**e**a**T**h**l**y**o** **d

func (*CompanyBuilder) CompanyUid

func (builder *CompanyBuilder) CompanyUid(companyUid string) *CompanyBuilder

公司唯一ID

示例值:U1404700189381369856

func (*CompanyBuilder) CountryCode

func (builder *CompanyBuilder) CountryCode(countryCode string) *CompanyBuilder

国家二字码

示例值:CN

func (*CompanyBuilder) CurrencyCode

func (builder *CompanyBuilder) CurrencyCode(currencyCode string) *CompanyBuilder

币种三字码

示例值:CNY

func (*CompanyBuilder) LegalEntityCode

func (builder *CompanyBuilder) LegalEntityCode(legalEntityCode string) *CompanyBuilder

法人实体编码

示例值:U1404691637455560704

type CompanyCompanyBankAccount

type CompanyCompanyBankAccount struct {
	CompanyBankAccountUid *string `json:"company_bank_account_uid,omitempty"` // 公司银行账号唯一ID

	CompanyUid *string `json:"company_uid,omitempty"` // 公司唯一ID

	Account *string `json:"account,omitempty"` // 银行账号

	Iban *string `json:"iban,omitempty"` // 国际银行账号

	AccountName *string `json:"account_name,omitempty"` // 开户名

	CurrencyCode *string `json:"currency_code,omitempty"` // 币种三字码

	LocalRoutingCode *string `json:"local_routing_code,omitempty"` // 银行本地清算代码

	GlAccountCode *string `json:"gl_account_code,omitempty"` // 总账科目编码

	ClearingAccountCode *string `json:"clearing_account_code,omitempty"` // 清算科目编码

	Swift *string `json:"swift,omitempty"` // swift

	AccountAttriDesc *string `json:"account_attri_desc,omitempty"` // 账户属性描述

	I18nAccountAttriDesc []*I18nStruct `json:"i18n_account_attri_desc,omitempty"` // 账户属性描述多语言
}

type CompanyCompanyBankAccountBuilder

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

func NewCompanyCompanyBankAccountBuilder

func NewCompanyCompanyBankAccountBuilder() *CompanyCompanyBankAccountBuilder

func (*CompanyCompanyBankAccountBuilder) Account

银行账号

示例值:642*********423

func (*CompanyCompanyBankAccountBuilder) AccountAttriDesc

func (builder *CompanyCompanyBankAccountBuilder) AccountAttriDesc(accountAttriDesc string) *CompanyCompanyBankAccountBuilder

账户属性描述

示例值:支出户

func (*CompanyCompanyBankAccountBuilder) AccountName

开户名

示例值:xxx有限公司

func (*CompanyCompanyBankAccountBuilder) Build

func (*CompanyCompanyBankAccountBuilder) ClearingAccountCode

func (builder *CompanyCompanyBankAccountBuilder) ClearingAccountCode(clearingAccountCode string) *CompanyCompanyBankAccountBuilder

清算科目编码

示例值:10020102

func (*CompanyCompanyBankAccountBuilder) CompanyBankAccountUid

func (builder *CompanyCompanyBankAccountBuilder) CompanyBankAccountUid(companyBankAccountUid string) *CompanyCompanyBankAccountBuilder

公司银行账号唯一ID

示例值:U1409787258113892352

func (*CompanyCompanyBankAccountBuilder) CompanyUid

公司唯一ID

示例值:U1409787216334430208

func (*CompanyCompanyBankAccountBuilder) CurrencyCode

func (builder *CompanyCompanyBankAccountBuilder) CurrencyCode(currencyCode string) *CompanyCompanyBankAccountBuilder

币种三字码

示例值:CNY

func (*CompanyCompanyBankAccountBuilder) GlAccountCode

func (builder *CompanyCompanyBankAccountBuilder) GlAccountCode(glAccountCode string) *CompanyCompanyBankAccountBuilder

总账科目编码

示例值:10020102

func (*CompanyCompanyBankAccountBuilder) I18nAccountAttriDesc

func (builder *CompanyCompanyBankAccountBuilder) I18nAccountAttriDesc(i18nAccountAttriDesc []*I18nStruct) *CompanyCompanyBankAccountBuilder

账户属性描述多语言

示例值:

func (*CompanyCompanyBankAccountBuilder) Iban

国际银行账号

示例值:ES7921000813610123456789

func (*CompanyCompanyBankAccountBuilder) LocalRoutingCode

func (builder *CompanyCompanyBankAccountBuilder) LocalRoutingCode(localRoutingCode string) *CompanyCompanyBankAccountBuilder

银行本地清算代码

示例值:308290003732

func (*CompanyCompanyBankAccountBuilder) Swift

swift

示例值:95566

type Config

type Config struct {
	FieldCode *string `json:"field_code,omitempty"` // 字段编码

	FieldName *string `json:"field_name,omitempty"` // 字段名称

	Module *int `json:"module,omitempty"` // 模块分组

	FieldDescribe *string `json:"field_describe,omitempty"` // 字段描述

	Sys *int `json:"sys,omitempty"` // 是否系统字段

	FieldType *int `json:"field_type,omitempty"` // 字段类型

	Required *int `json:"required,omitempty"` // 是否必填

	Status *int `json:"status,omitempty"` // 是否启用

	FieldVersion *int `json:"field_version,omitempty"` // 当前最新版本号
}

type ConfigBuilder

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

func NewConfigBuilder

func NewConfigBuilder() *ConfigBuilder

func (*ConfigBuilder) Build

func (builder *ConfigBuilder) Build() *Config

func (*ConfigBuilder) FieldCode

func (builder *ConfigBuilder) FieldCode(fieldCode string) *ConfigBuilder

字段编码

示例值:V00000001

func (*ConfigBuilder) FieldDescribe

func (builder *ConfigBuilder) FieldDescribe(fieldDescribe string) *ConfigBuilder

字段描述

示例值:字段描述

func (*ConfigBuilder) FieldName

func (builder *ConfigBuilder) FieldName(fieldName string) *ConfigBuilder

字段名称

示例值:字段1

func (*ConfigBuilder) FieldType

func (builder *ConfigBuilder) FieldType(fieldType int) *ConfigBuilder

字段类型

示例值:

func (*ConfigBuilder) FieldVersion

func (builder *ConfigBuilder) FieldVersion(fieldVersion int) *ConfigBuilder

当前最新版本号

示例值:1

func (*ConfigBuilder) Module

func (builder *ConfigBuilder) Module(module int) *ConfigBuilder

模块分组

示例值:0

func (*ConfigBuilder) Required

func (builder *ConfigBuilder) Required(required int) *ConfigBuilder

是否必填

示例值:0

func (*ConfigBuilder) Status

func (builder *ConfigBuilder) Status(status int) *ConfigBuilder

是否启用

示例值:0

func (*ConfigBuilder) Sys

func (builder *ConfigBuilder) Sys(sys int) *ConfigBuilder

是否系统字段

示例值:0

type CostCenter

type CostCenter struct {
	CostCenterUid *string `json:"cost_center_uid,omitempty"` // 成本中心唯一ID

	CostCenterCode *string `json:"cost_center_code,omitempty"` // 成本中心编码

	I18nCostCenterName []*I18nStruct `json:"i18n_cost_center_name,omitempty"` // 成本中心名称多语言配置

	ResponsibleUserUnionId *string `json:"responsible_user_union_id,omitempty"` // 负责人union id,详细说明参见[union id说明](https://open.feishu.cn/document/home/user-identity-introduction/union-id)

	CoAreaCode *string `json:"co_area_code,omitempty"` // 控制范围编码

	CompanyCode *string `json:"company_code,omitempty"` // 公司编码

	ProfitCenterCode *string `json:"profit_center_code,omitempty"` // 利润中心编码

	BusinessArea *string `json:"business_area,omitempty"` // 业务范围

	FeeType *string `json:"fee_type,omitempty"` // 费用类型

	ValidTo *string `json:"valid_to,omitempty"` // 有效期至(yyyy-MM-dd)

	CostCenterName *string `json:"cost_center_name,omitempty"` // 成本中心名称

	CompanyCodeList []string `json:"company_code_list,omitempty"` // 公司编码列表
}

type CostCenterBuilder

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

func NewCostCenterBuilder

func NewCostCenterBuilder() *CostCenterBuilder

func (*CostCenterBuilder) Build

func (builder *CostCenterBuilder) Build() *CostCenter

func (*CostCenterBuilder) BusinessArea

func (builder *CostCenterBuilder) BusinessArea(businessArea string) *CostCenterBuilder

业务范围

示例值:FIC

func (*CostCenterBuilder) CoAreaCode

func (builder *CostCenterBuilder) CoAreaCode(coAreaCode string) *CostCenterBuilder

控制范围编码

示例值:HL01

func (*CostCenterBuilder) CompanyCode added in v3.4.2

func (builder *CostCenterBuilder) CompanyCode(companyCode string) *CostCenterBuilder

公司编码

示例值:1001

func (*CostCenterBuilder) CompanyCodeList

func (builder *CostCenterBuilder) CompanyCodeList(companyCodeList []string) *CostCenterBuilder

公司编码列表

示例值:s1001

func (*CostCenterBuilder) CostCenterCode

func (builder *CostCenterBuilder) CostCenterCode(costCenterCode string) *CostCenterBuilder

成本中心编码

示例值:1002000100

func (*CostCenterBuilder) CostCenterName

func (builder *CostCenterBuilder) CostCenterName(costCenterName string) *CostCenterBuilder

成本中心名称

示例值:总经理办公室

func (*CostCenterBuilder) CostCenterUid

func (builder *CostCenterBuilder) CostCenterUid(costCenterUid string) *CostCenterBuilder

成本中心唯一ID

示例值:U1404779844306214912

func (*CostCenterBuilder) FeeType

func (builder *CostCenterBuilder) FeeType(feeType string) *CostCenterBuilder

费用类型

示例值:Administration

func (*CostCenterBuilder) I18nCostCenterName

func (builder *CostCenterBuilder) I18nCostCenterName(i18nCostCenterName []*I18nStruct) *CostCenterBuilder

成本中心名称多语言配置

示例值:总经理办公室

func (*CostCenterBuilder) ProfitCenterCode

func (builder *CostCenterBuilder) ProfitCenterCode(profitCenterCode string) *CostCenterBuilder

利润中心编码

示例值:100101

func (*CostCenterBuilder) ResponsibleUserUnionId

func (builder *CostCenterBuilder) ResponsibleUserUnionId(responsibleUserUnionId string) *CostCenterBuilder

负责人union id,详细说明参见[union id说明](https://open.feishu.cn/document/home/user-identity-introduction/union-id)

示例值:8763419

func (*CostCenterBuilder) ValidTo

func (builder *CostCenterBuilder) ValidTo(validTo string) *CostCenterBuilder

有效期至(yyyy-MM-dd)

示例值:9999-12-31

type DepartmentCostCenterRelationship

type DepartmentCostCenterRelationship struct {
	DepartmentCostCenterRelationshipUid *string `json:"department_cost_center_relationship_uid,omitempty"` // 部门成本中心关系唯一ID

	CompanyCode *string `json:"company_code,omitempty"` // 公司编码

	OpenDepartmentId *string `json:"open_department_id,omitempty"` // 部门open id,详细说明参见[部门 ID 说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

	CostCenterCode *string `json:"cost_center_code,omitempty"` // 成本中心代码

	DepartmentId *string `json:"department_id,omitempty"` // 部门id,详细说明参见[部门 ID 说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)
}

type DepartmentCostCenterRelationshipBuilder

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

func NewDepartmentCostCenterRelationshipBuilder

func NewDepartmentCostCenterRelationshipBuilder() *DepartmentCostCenterRelationshipBuilder

func (*DepartmentCostCenterRelationshipBuilder) Build

func (*DepartmentCostCenterRelationshipBuilder) CompanyCode

公司编码

示例值:100101

func (*DepartmentCostCenterRelationshipBuilder) CostCenterCode

成本中心代码

示例值:1002000100

func (*DepartmentCostCenterRelationshipBuilder) DepartmentCostCenterRelationshipUid

func (builder *DepartmentCostCenterRelationshipBuilder) DepartmentCostCenterRelationshipUid(departmentCostCenterRelationshipUid string) *DepartmentCostCenterRelationshipBuilder

部门成本中心关系唯一ID

示例值:U1418468581452029052

func (*DepartmentCostCenterRelationshipBuilder) DepartmentId

部门id,详细说明参见[部门 ID 说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

示例值:1001

func (*DepartmentCostCenterRelationshipBuilder) OpenDepartmentId

func (builder *DepartmentCostCenterRelationshipBuilder) OpenDepartmentId(openDepartmentId string) *DepartmentCostCenterRelationshipBuilder

部门open id,详细说明参见[部门 ID 说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

示例值:od-1001

type DepartmentId added in v3.0.29

type DepartmentId struct {
	DepartmentId *string `json:"department_id,omitempty"` //

	OpenDepartmentId *string `json:"open_department_id,omitempty"` //
}

type DepartmentIdBuilder added in v3.0.29

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

func NewDepartmentIdBuilder added in v3.0.29

func NewDepartmentIdBuilder() *DepartmentIdBuilder

func (*DepartmentIdBuilder) Build added in v3.0.29

func (builder *DepartmentIdBuilder) Build() *DepartmentId

func (*DepartmentIdBuilder) DepartmentId added in v3.0.29

func (builder *DepartmentIdBuilder) DepartmentId(departmentId string) *DepartmentIdBuilder

示例值:

func (*DepartmentIdBuilder) OpenDepartmentId added in v3.0.29

func (builder *DepartmentIdBuilder) OpenDepartmentId(openDepartmentId string) *DepartmentIdBuilder

示例值:

type ExtendField

type ExtendField struct {
	FieldType *int `json:"field_type,omitempty"` // 字段类型

	FieldValue *string `json:"field_value,omitempty"` // 字段类型为 单行文本框(0)、多行文本框(1)、单选框(3)、下拉单选框(5) 时的值

	Options []string `json:"options,omitempty"` // 字段类型为 多选框(4) 下拉多选(6) 时的值

	Num *float64 `json:"num,omitempty"` // 字段类型为 数字(2) 时的值

	Date *string `json:"date,omitempty"` // 字段类型是 日期(7)时候的值

	RangeDate []string `json:"range_date,omitempty"` // 字段类型是 日期区间(8) 时候的值	数组长度为2	  0-startTime   1-endTime

	FieldCode *string `json:"field_code,omitempty"` // 字段编码

	Appendix []*Appendix `json:"appendix,omitempty"` // 附件列表 字段类型是 附件(12) 时候的值
}

type ExtendFieldBuilder

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

func NewExtendFieldBuilder

func NewExtendFieldBuilder() *ExtendFieldBuilder

func (*ExtendFieldBuilder) Appendix

func (builder *ExtendFieldBuilder) Appendix(appendix []*Appendix) *ExtendFieldBuilder

附件列表 字段类型是 附件(12) 时候的值

示例值:

func (*ExtendFieldBuilder) Build

func (builder *ExtendFieldBuilder) Build() *ExtendField

func (*ExtendFieldBuilder) Date

func (builder *ExtendFieldBuilder) Date(date string) *ExtendFieldBuilder

字段类型是 日期(7)时候的值

示例值:2021-10-14

func (*ExtendFieldBuilder) FieldCode

func (builder *ExtendFieldBuilder) FieldCode(fieldCode string) *ExtendFieldBuilder

字段编码

示例值:X00000001

func (*ExtendFieldBuilder) FieldType

func (builder *ExtendFieldBuilder) FieldType(fieldType int) *ExtendFieldBuilder

字段类型

示例值:0

func (*ExtendFieldBuilder) FieldValue

func (builder *ExtendFieldBuilder) FieldValue(fieldValue string) *ExtendFieldBuilder

字段类型为 单行文本框(0)、多行文本框(1)、单选框(3)、下拉单选框(5) 时的值

示例值:文本值

func (*ExtendFieldBuilder) Num

func (builder *ExtendFieldBuilder) Num(num float64) *ExtendFieldBuilder

字段类型为 数字(2) 时的值

示例值:1.11

func (*ExtendFieldBuilder) Options

func (builder *ExtendFieldBuilder) Options(options []string) *ExtendFieldBuilder

字段类型为 多选框(4) 下拉多选(6) 时的值

示例值:["2021-09-23","2021-10-14"]

func (*ExtendFieldBuilder) RangeDate

func (builder *ExtendFieldBuilder) RangeDate(rangeDate []string) *ExtendFieldBuilder

字段类型是 日期区间(8) 时候的值 数组长度为2 0-startTime 1-endTime

示例值:2021-10-14

type FixedExchangeRate

type FixedExchangeRate struct {
	SourceCurrency *string `json:"source_currency,omitempty"` // 原始币种代码

	TargetCurrency *string `json:"target_currency,omitempty"` // 目标币种代码

	EffectiveDate *string `json:"effective_date,omitempty"` // 换算日期

	ExchangeRate *string `json:"exchange_rate,omitempty"` // 汇率值,保留10位小数

	Status *int `json:"status,omitempty"` // 状态,枚举值:1_生效,0_失效
}

type FixedExchangeRateBuilder

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

func NewFixedExchangeRateBuilder

func NewFixedExchangeRateBuilder() *FixedExchangeRateBuilder

func (*FixedExchangeRateBuilder) Build

func (builder *FixedExchangeRateBuilder) Build() *FixedExchangeRate

func (*FixedExchangeRateBuilder) EffectiveDate

func (builder *FixedExchangeRateBuilder) EffectiveDate(effectiveDate string) *FixedExchangeRateBuilder

换算日期

示例值:2022-02-13

func (*FixedExchangeRateBuilder) ExchangeRate

func (builder *FixedExchangeRateBuilder) ExchangeRate(exchangeRate string) *FixedExchangeRateBuilder

汇率值,保留10位小数

示例值:0.1720000000

func (*FixedExchangeRateBuilder) SourceCurrency

func (builder *FixedExchangeRateBuilder) SourceCurrency(sourceCurrency string) *FixedExchangeRateBuilder

原始币种代码

示例值:USD

func (*FixedExchangeRateBuilder) Status

func (builder *FixedExchangeRateBuilder) Status(status int) *FixedExchangeRateBuilder

状态,枚举值:1_生效,0_失效

示例值:1

func (*FixedExchangeRateBuilder) TargetCurrency

func (builder *FixedExchangeRateBuilder) TargetCurrency(targetCurrency string) *FixedExchangeRateBuilder

目标币种代码

示例值:CNY

type GlAccount

type GlAccount struct {
	GlAccountUid *string `json:"gl_account_uid,omitempty"` // 会计科目唯一ID

	GlAccount *string `json:"gl_account,omitempty"` // 会计科目编码

	GlAccountName *string `json:"gl_account_name,omitempty"` // 会计科目名称

	I18nGlAccountName []*I18nStruct `json:"i18n_gl_account_name,omitempty"` // 会计科目名称多语言

	Type *string `json:"type,omitempty"` // 会计科目类型

	ValidTo *string `json:"valid_to,omitempty"` // 有效期至,格式:yyyy-MM-dd
}

type GlAccountBuilder

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

func NewGlAccountBuilder

func NewGlAccountBuilder() *GlAccountBuilder

func (*GlAccountBuilder) Build

func (builder *GlAccountBuilder) Build() *GlAccount

func (*GlAccountBuilder) GlAccount

func (builder *GlAccountBuilder) GlAccount(glAccount string) *GlAccountBuilder

会计科目编码

示例值:51012006

func (*GlAccountBuilder) GlAccountName

func (builder *GlAccountBuilder) GlAccountName(glAccountName string) *GlAccountBuilder

会计科目名称

示例值:管理费用-电力工程

func (*GlAccountBuilder) GlAccountUid

func (builder *GlAccountBuilder) GlAccountUid(glAccountUid string) *GlAccountBuilder

会计科目唯一ID

示例值:U1404732463745343488

func (*GlAccountBuilder) I18nGlAccountName

func (builder *GlAccountBuilder) I18nGlAccountName(i18nGlAccountName []*I18nStruct) *GlAccountBuilder

会计科目名称多语言

示例值:

func (*GlAccountBuilder) Type

func (builder *GlAccountBuilder) Type(type_ string) *GlAccountBuilder

会计科目类型

示例值:101

func (*GlAccountBuilder) ValidTo

func (builder *GlAccountBuilder) ValidTo(validTo string) *GlAccountBuilder

有效期至,格式:yyyy-MM-dd

示例值:9999-12-31

type GlAccountCompanyRelationship

type GlAccountCompanyRelationship struct {
	GlAccountCode *string `json:"gl_account_code,omitempty"` // 会计科目编码

	CompanyCode *string `json:"company_code,omitempty"` // 公司编码

	GlAccountCompanyRelationshipUid *string `json:"gl_account_company_relationship_uid,omitempty"` // 会计科目公司关系唯一ID

	ValidTo *string `json:"valid_to,omitempty"` // 有效期至,格式:yyyy-MM-dd
}

type GlAccountCompanyRelationshipBuilder

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

func NewGlAccountCompanyRelationshipBuilder

func NewGlAccountCompanyRelationshipBuilder() *GlAccountCompanyRelationshipBuilder

func (*GlAccountCompanyRelationshipBuilder) Build

func (*GlAccountCompanyRelationshipBuilder) CompanyCode

公司编码

示例值:U1404700185187065856

func (*GlAccountCompanyRelationshipBuilder) GlAccountCode

会计科目编码

示例值:U1404733114483220480

func (*GlAccountCompanyRelationshipBuilder) GlAccountCompanyRelationshipUid

func (builder *GlAccountCompanyRelationshipBuilder) GlAccountCompanyRelationshipUid(glAccountCompanyRelationshipUid string) *GlAccountCompanyRelationshipBuilder

会计科目公司关系唯一ID

示例值:U1404732747611643904

func (*GlAccountCompanyRelationshipBuilder) ValidTo

有效期至,格式:yyyy-MM-dd

示例值:2021-12-31

type I18nStruct

type I18nStruct struct {
	LangLocale *string `json:"lang_locale,omitempty"` // 语言编码

	Value *string `json:"value,omitempty"` // 描述

	ValidTo *string `json:"valid_to,omitempty"` // 有效期至,格式:yyyy-MM-dd
}

type I18nStructBuilder

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

func NewI18nStructBuilder

func NewI18nStructBuilder() *I18nStructBuilder

func (*I18nStructBuilder) Build

func (builder *I18nStructBuilder) Build() *I18nStruct

func (*I18nStructBuilder) LangLocale

func (builder *I18nStructBuilder) LangLocale(langLocale string) *I18nStructBuilder

语言编码

示例值:en-US

func (*I18nStructBuilder) ValidTo

func (builder *I18nStructBuilder) ValidTo(validTo string) *I18nStructBuilder

有效期至,格式:yyyy-MM-dd

示例值:9999-12-31

func (*I18nStructBuilder) Value

func (builder *I18nStructBuilder) Value(value string) *I18nStructBuilder

描述

示例值:abc

type InternalOrder

type InternalOrder struct {
	InternalOrderUid *string `json:"internal_order_uid,omitempty"` // 内部订单唯一ID

	InternalOrderCode *string `json:"internal_order_code,omitempty"` // 内部订单编码

	InternalOrderName *string `json:"internal_order_name,omitempty"` // 内部订单名称

	Type *string `json:"type,omitempty"` // 内部订单类型

	ResponsibleUserUnionId *string `json:"responsible_user_union_id,omitempty"` // 负责人union id,详细说明参见[union id说明](https://open.feishu.cn/document/home/user-identity-introduction/union-id)

	CompanyCode *string `json:"company_code,omitempty"` // 关联公司唯一ID

	CoAreaCode *string `json:"co_area_code,omitempty"` // 控制范围编码
}

type InternalOrderBuilder

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

func NewInternalOrderBuilder

func NewInternalOrderBuilder() *InternalOrderBuilder

func (*InternalOrderBuilder) Build

func (builder *InternalOrderBuilder) Build() *InternalOrder

func (*InternalOrderBuilder) CoAreaCode

func (builder *InternalOrderBuilder) CoAreaCode(coAreaCode string) *InternalOrderBuilder

控制范围编码

示例值:HL01

func (*InternalOrderBuilder) CompanyCode

func (builder *InternalOrderBuilder) CompanyCode(companyCode string) *InternalOrderBuilder

关联公司唯一ID

示例值:U20783822457920

func (*InternalOrderBuilder) InternalOrderCode

func (builder *InternalOrderBuilder) InternalOrderCode(internalOrderCode string) *InternalOrderBuilder

内部订单编码

示例值:8010010001

func (*InternalOrderBuilder) InternalOrderName

func (builder *InternalOrderBuilder) InternalOrderName(internalOrderName string) *InternalOrderBuilder

内部订单名称

示例值:北京工会年度统计

func (*InternalOrderBuilder) InternalOrderUid

func (builder *InternalOrderBuilder) InternalOrderUid(internalOrderUid string) *InternalOrderBuilder

内部订单唯一ID

示例值:U1404789143929626624

func (*InternalOrderBuilder) ResponsibleUserUnionId

func (builder *InternalOrderBuilder) ResponsibleUserUnionId(responsibleUserUnionId string) *InternalOrderBuilder

负责人union id,详细说明参见[union id说明](https://open.feishu.cn/document/home/user-identity-introduction/union-id)

示例值:8763419

func (*InternalOrderBuilder) Type

func (builder *InternalOrderBuilder) Type(type_ string) *InternalOrderBuilder

内部订单类型

示例值:A0001

type LegalEntity

type LegalEntity struct {
	Id *string `json:"id,omitempty"` // 法人实体id

	LegalEntity *string `json:"legal_entity,omitempty"` // 法人实体编码(根据配置会有不同的生成规则)

	LegalEntityText *string `json:"legal_entity_text,omitempty"` // 法人实体名称

	ShortText *string `json:"short_text,omitempty"` // 法人实体英文名称

	CertificationType *string `json:"certification_type,omitempty"` // 证件类型

	CertificationId *string `json:"certification_id,omitempty"` // 证件id

	LegalPerson *string `json:"legal_person,omitempty"` // 法人

	Country *string `json:"country,omitempty"` // 国家

	Province *string `json:"province,omitempty"` // 省份

	City *string `json:"city,omitempty"` // 城市

	Address *string `json:"address,omitempty"` // 地址

	TaxpayerType *string `json:"taxpayer_type,omitempty"` // 纳税人类型

	Telephone *string `json:"telephone,omitempty"` // 联系电话

	BankId *string `json:"bank_id,omitempty"` // 银行内部Id

	BankName *string `json:"bank_name,omitempty"` // 开户银行名称

	BankAccount *string `json:"bank_account,omitempty"` // 开户行账号

	Status *int `json:"status,omitempty"` // 状态

	LegalEntityBanks []*LegalEntityBank `json:"legal_entity_banks,omitempty"` // 银行账户列表

	ExtendInfo []*ExtendField `json:"extend_info,omitempty"` // 扩展字段相关信息列表

	Appendix []*Appendix `json:"appendix,omitempty"` // 附件列表
}

type LegalEntityBank

type LegalEntityBank struct {
	Id *string `json:"id,omitempty"` // 法人实体银行账户id

	CompanyCode *string `json:"company_code,omitempty"` // 公司编码

	BankId *string `json:"bank_id,omitempty"` // 银行Id

	BankCode *string `json:"bank_code,omitempty"` // 银联号

	BankName *string `json:"bank_name,omitempty"` // 银行名称

	BankAcronym *string `json:"bank_acronym,omitempty"` // 总行英文缩写

	Country *string `json:"country,omitempty"` // 国家

	AccountName *string `json:"account_name,omitempty"` // 账户名称

	BankAccount *string `json:"bank_account,omitempty"` // 银行账号

	SwiftCode *string `json:"swift_code,omitempty"` // 银行SWIFT编码

	BankControlCode *string `json:"bank_control_code,omitempty"` // 银行控制码

	ExtendInfo []*ExtendField `json:"extend_info,omitempty"` // 扩展字段相关信息列表

	IbanAccount *string `json:"iban_account,omitempty"` // IBAN账号

	Currency *string `json:"currency,omitempty"` // 币种

	GlAccount *string `json:"gl_account,omitempty"` // 总账科目编码

	ClearingAccount *string `json:"clearing_account,omitempty"` // 清算科目编码

	AccountAttributeDesc *string `json:"account_attribute_desc,omitempty"` // 账户属性描述
}

type LegalEntityBankBuilder

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

func NewLegalEntityBankBuilder

func NewLegalEntityBankBuilder() *LegalEntityBankBuilder

func (*LegalEntityBankBuilder) AccountAttributeDesc

func (builder *LegalEntityBankBuilder) AccountAttributeDesc(accountAttributeDesc string) *LegalEntityBankBuilder

账户属性描述

示例值:QWE123

func (*LegalEntityBankBuilder) AccountName

func (builder *LegalEntityBankBuilder) AccountName(accountName string) *LegalEntityBankBuilder

账户名称

示例值:账户名称

func (*LegalEntityBankBuilder) BankAccount

func (builder *LegalEntityBankBuilder) BankAccount(bankAccount string) *LegalEntityBankBuilder

银行账号

示例值:122907287xxxxx9

func (*LegalEntityBankBuilder) BankAcronym

func (builder *LegalEntityBankBuilder) BankAcronym(bankAcronym string) *LegalEntityBankBuilder

总行英文缩写

示例值:PBC

func (*LegalEntityBankBuilder) BankCode

func (builder *LegalEntityBankBuilder) BankCode(bankCode string) *LegalEntityBankBuilder

银联号

示例值:001755053005

func (*LegalEntityBankBuilder) BankControlCode

func (builder *LegalEntityBankBuilder) BankControlCode(bankControlCode string) *LegalEntityBankBuilder

银行控制码

示例值:40001xxxxxxx00313261

func (*LegalEntityBankBuilder) BankId

func (builder *LegalEntityBankBuilder) BankId(bankId string) *LegalEntityBankBuilder

银行Id

示例值:MDBK00131739

func (*LegalEntityBankBuilder) BankName

func (builder *LegalEntityBankBuilder) BankName(bankName string) *LegalEntityBankBuilder

银行名称

示例值:中国人民银行丽江市中心支行

func (*LegalEntityBankBuilder) Build

func (builder *LegalEntityBankBuilder) Build() *LegalEntityBank

func (*LegalEntityBankBuilder) ClearingAccount

func (builder *LegalEntityBankBuilder) ClearingAccount(clearingAccount string) *LegalEntityBankBuilder

清算科目编码

示例值:ASD123

func (*LegalEntityBankBuilder) CompanyCode

func (builder *LegalEntityBankBuilder) CompanyCode(companyCode string) *LegalEntityBankBuilder

公司编码

示例值:1002

func (*LegalEntityBankBuilder) Country

func (builder *LegalEntityBankBuilder) Country(country string) *LegalEntityBankBuilder

国家

示例值:CN

func (*LegalEntityBankBuilder) Currency

func (builder *LegalEntityBankBuilder) Currency(currency string) *LegalEntityBankBuilder

币种

示例值:RMB

func (*LegalEntityBankBuilder) ExtendInfo

func (builder *LegalEntityBankBuilder) ExtendInfo(extendInfo []*ExtendField) *LegalEntityBankBuilder

扩展字段相关信息列表

示例值:

func (*LegalEntityBankBuilder) GlAccount

func (builder *LegalEntityBankBuilder) GlAccount(glAccount string) *LegalEntityBankBuilder

总账科目编码

示例值:123ASD

func (*LegalEntityBankBuilder) IbanAccount

func (builder *LegalEntityBankBuilder) IbanAccount(ibanAccount string) *LegalEntityBankBuilder

IBAN账号

示例值:6446777

func (*LegalEntityBankBuilder) Id

法人实体银行账户id

示例值:1433492736852541442

func (*LegalEntityBankBuilder) SwiftCode

func (builder *LegalEntityBankBuilder) SwiftCode(swiftCode string) *LegalEntityBankBuilder

银行SWIFT编码

示例值:CMBCCNBS

type LegalEntityBuilder

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

func NewLegalEntityBuilder

func NewLegalEntityBuilder() *LegalEntityBuilder

func (*LegalEntityBuilder) Address

func (builder *LegalEntityBuilder) Address(address string) *LegalEntityBuilder

地址

示例值:地址

func (*LegalEntityBuilder) Appendix

func (builder *LegalEntityBuilder) Appendix(appendix []*Appendix) *LegalEntityBuilder

附件列表

示例值:

func (*LegalEntityBuilder) BankAccount

func (builder *LegalEntityBuilder) BankAccount(bankAccount string) *LegalEntityBuilder

开户行账号

示例值:644666446

func (*LegalEntityBuilder) BankId

func (builder *LegalEntityBuilder) BankId(bankId string) *LegalEntityBuilder

银行内部Id

示例值:MDBK00072319

func (*LegalEntityBuilder) BankName

func (builder *LegalEntityBuilder) BankName(bankName string) *LegalEntityBuilder

开户银行名称

示例值:中原银行股份有限公司南阳华瑞支行

func (*LegalEntityBuilder) Build

func (builder *LegalEntityBuilder) Build() *LegalEntity

func (*LegalEntityBuilder) CertificationId

func (builder *LegalEntityBuilder) CertificationId(certificationId string) *LegalEntityBuilder

证件id

示例值:91310120MA1H23N81AX

func (*LegalEntityBuilder) CertificationType

func (builder *LegalEntityBuilder) CertificationType(certificationType string) *LegalEntityBuilder

证件类型

示例值:0

func (*LegalEntityBuilder) City

func (builder *LegalEntityBuilder) City(city string) *LegalEntityBuilder

城市

示例值:MDCY00006000

func (*LegalEntityBuilder) Country

func (builder *LegalEntityBuilder) Country(country string) *LegalEntityBuilder

国家

示例值:CN

func (*LegalEntityBuilder) ExtendInfo

func (builder *LegalEntityBuilder) ExtendInfo(extendInfo []*ExtendField) *LegalEntityBuilder

扩展字段相关信息列表

示例值:

func (*LegalEntityBuilder) Id

func (builder *LegalEntityBuilder) Id(id string) *LegalEntityBuilder

法人实体id

示例值:7003410079584092448

func (*LegalEntityBuilder) LegalEntity

func (builder *LegalEntityBuilder) LegalEntity(legalEntity string) *LegalEntityBuilder

法人实体编码(根据配置会有不同的生成规则)

示例值:L00002002

func (*LegalEntityBuilder) LegalEntityBanks

func (builder *LegalEntityBuilder) LegalEntityBanks(legalEntityBanks []*LegalEntityBank) *LegalEntityBuilder

银行账户列表

示例值:

func (*LegalEntityBuilder) LegalEntityText

func (builder *LegalEntityBuilder) LegalEntityText(legalEntityText string) *LegalEntityBuilder

法人实体名称

示例值:法人22

func (*LegalEntityBuilder) LegalPerson

func (builder *LegalEntityBuilder) LegalPerson(legalPerson string) *LegalEntityBuilder

法人

示例值:张三

func (*LegalEntityBuilder) Province

func (builder *LegalEntityBuilder) Province(province string) *LegalEntityBuilder

省份

示例值:MDPS00004000

func (*LegalEntityBuilder) ShortText

func (builder *LegalEntityBuilder) ShortText(shortText string) *LegalEntityBuilder

法人实体英文名称

示例值:legal_person

func (*LegalEntityBuilder) Status

func (builder *LegalEntityBuilder) Status(status int) *LegalEntityBuilder

状态

示例值:1

func (*LegalEntityBuilder) TaxpayerType

func (builder *LegalEntityBuilder) TaxpayerType(taxpayerType string) *LegalEntityBuilder

纳税人类型

示例值:1

func (*LegalEntityBuilder) Telephone

func (builder *LegalEntityBuilder) Telephone(telephone string) *LegalEntityBuilder

联系电话

示例值:010-58341796

type MultiLanguage

type MultiLanguage struct {
	Language *string `json:"language,omitempty"` // 语言枚举

	Value *string `json:"value,omitempty"` // 语言对应的value
}

type MultiLanguageBuilder

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

func NewMultiLanguageBuilder

func NewMultiLanguageBuilder() *MultiLanguageBuilder

func (*MultiLanguageBuilder) Build

func (builder *MultiLanguageBuilder) Build() *MultiLanguage

func (*MultiLanguageBuilder) Language

func (builder *MultiLanguageBuilder) Language(language string) *MultiLanguageBuilder

语言枚举

示例值:zh

func (*MultiLanguageBuilder) Value

func (builder *MultiLanguageBuilder) Value(value string) *MultiLanguageBuilder

语言对应的value

示例值:haha

type OpenApiUpdateVendor added in v3.0.27

type OpenApiUpdateVendor struct {
	Id *string `json:"id,omitempty"` // id
}

type OpenApiUpdateVendorBuilder added in v3.0.27

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

func NewOpenApiUpdateVendorBuilder added in v3.0.27

func NewOpenApiUpdateVendorBuilder() *OpenApiUpdateVendorBuilder

func (*OpenApiUpdateVendorBuilder) Build added in v3.0.27

func (*OpenApiUpdateVendorBuilder) Id added in v3.0.27

id

示例值:1111111111

type Project

type Project struct {
	ProjectUid *string `json:"project_uid,omitempty"` // 项目唯一id

	Code *string `json:"code,omitempty"` // 项目编码

	Name *string `json:"name,omitempty"` // 项目名称

	Type *string `json:"type,omitempty"` // 项目类型名称

	ResponsibleUserUnionId *string `json:"responsible_user_union_id,omitempty"` // 负责人id

	StartDay *string `json:"start_day,omitempty"` // 项目开始日期(yyyy-MM-dd)

	EndDay *string `json:"end_day,omitempty"` // 项目截止日期(yyyy-MM-dd)

	ParentCode *string `json:"parent_code,omitempty"` // 父项目节点

	Level *int `json:"level,omitempty"` // 项目层级

	LevelInfo *string `json:"level_info,omitempty"` // 项目层级详情

	Status *int `json:"status,omitempty"` // 项目状态

	ExtendInfo []*ExtendField `json:"extend_info,omitempty"` // 扩展字段值信息

	IsAllCompany *bool `json:"is_all_company,omitempty"` // 是否全部公司

	ProjectCompanyDeptMappings []*ProjectCompanyDeptMapping `json:"project_company_dept_mappings,omitempty"` // 项目公司部门关系列表

	MultiLanguageName []*MultiLanguage `json:"multi_language_name,omitempty"` // 名称多语言
}

type ProjectBuilder

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

func NewProjectBuilder

func NewProjectBuilder() *ProjectBuilder

func (*ProjectBuilder) Build

func (builder *ProjectBuilder) Build() *Project

func (*ProjectBuilder) Code

func (builder *ProjectBuilder) Code(code string) *ProjectBuilder

项目编码

示例值:P000001

func (*ProjectBuilder) EndDay

func (builder *ProjectBuilder) EndDay(endDay string) *ProjectBuilder

项目截止日期(yyyy-MM-dd)

示例值:9999-01-01

func (*ProjectBuilder) ExtendInfo

func (builder *ProjectBuilder) ExtendInfo(extendInfo []*ExtendField) *ProjectBuilder

扩展字段值信息

示例值:

func (*ProjectBuilder) IsAllCompany

func (builder *ProjectBuilder) IsAllCompany(isAllCompany bool) *ProjectBuilder

是否全部公司

示例值:true

func (*ProjectBuilder) Level

func (builder *ProjectBuilder) Level(level int) *ProjectBuilder

项目层级

示例值:1

func (*ProjectBuilder) LevelInfo

func (builder *ProjectBuilder) LevelInfo(levelInfo string) *ProjectBuilder

项目层级详情

示例值:2021-XJ001-02-02

func (*ProjectBuilder) MultiLanguageName

func (builder *ProjectBuilder) MultiLanguageName(multiLanguageName []*MultiLanguage) *ProjectBuilder

名称多语言

示例值:

func (*ProjectBuilder) Name

func (builder *ProjectBuilder) Name(name string) *ProjectBuilder

项目名称

示例值:项目123

func (*ProjectBuilder) ParentCode

func (builder *ProjectBuilder) ParentCode(parentCode string) *ProjectBuilder

父项目节点

示例值:123123123

func (*ProjectBuilder) ProjectCompanyDeptMappings

func (builder *ProjectBuilder) ProjectCompanyDeptMappings(projectCompanyDeptMappings []*ProjectCompanyDeptMapping) *ProjectBuilder

项目公司部门关系列表

示例值:

func (*ProjectBuilder) ProjectUid

func (builder *ProjectBuilder) ProjectUid(projectUid string) *ProjectBuilder

项目唯一id

示例值:U00000000000001

func (*ProjectBuilder) ResponsibleUserUnionId

func (builder *ProjectBuilder) ResponsibleUserUnionId(responsibleUserUnionId string) *ProjectBuilder

负责人id

示例值:U000012300001

func (*ProjectBuilder) StartDay

func (builder *ProjectBuilder) StartDay(startDay string) *ProjectBuilder

项目开始日期(yyyy-MM-dd)

示例值:9999-01-01

func (*ProjectBuilder) Status

func (builder *ProjectBuilder) Status(status int) *ProjectBuilder

项目状态

示例值:1

func (*ProjectBuilder) Type

func (builder *ProjectBuilder) Type(type_ string) *ProjectBuilder

项目类型名称

示例值:项目类型3

type ProjectCompanyDeptMapping

type ProjectCompanyDeptMapping struct {
	ProjectUnionId *string `json:"project_union_id,omitempty"` // 项目unionId

	CompanyUnionId *string `json:"company_union_id,omitempty"` // 公司unionId

	IsAllDepartment *bool `json:"is_all_department,omitempty"` // 是否全部部门

	DepartmentUnionId *string `json:"department_union_id,omitempty"` // 部门unionId
}

type ProjectCompanyDeptMappingBuilder

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

func NewProjectCompanyDeptMappingBuilder

func NewProjectCompanyDeptMappingBuilder() *ProjectCompanyDeptMappingBuilder

func (*ProjectCompanyDeptMappingBuilder) Build

func (*ProjectCompanyDeptMappingBuilder) CompanyUnionId

func (builder *ProjectCompanyDeptMappingBuilder) CompanyUnionId(companyUnionId string) *ProjectCompanyDeptMappingBuilder

公司unionId

示例值:U1233123123

func (*ProjectCompanyDeptMappingBuilder) DepartmentUnionId

func (builder *ProjectCompanyDeptMappingBuilder) DepartmentUnionId(departmentUnionId string) *ProjectCompanyDeptMappingBuilder

部门unionId

示例值:U123123123

func (*ProjectCompanyDeptMappingBuilder) IsAllDepartment

func (builder *ProjectCompanyDeptMappingBuilder) IsAllDepartment(isAllDepartment bool) *ProjectCompanyDeptMappingBuilder

是否全部部门

示例值:true

func (*ProjectCompanyDeptMappingBuilder) ProjectUnionId

func (builder *ProjectCompanyDeptMappingBuilder) ProjectUnionId(projectUnionId string) *ProjectCompanyDeptMappingBuilder

项目unionId

示例值:U0012312312333

type UnbindUserAuthDataRelationReq

type UnbindUserAuthDataRelationReq struct {
	UserAuthDataRelation *UserAuthDataRelation `body:""`
	// contains filtered or unexported fields
}

type UnbindUserAuthDataRelationReqBuilder

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

func NewUnbindUserAuthDataRelationReqBuilder

func NewUnbindUserAuthDataRelationReqBuilder() *UnbindUserAuthDataRelationReqBuilder

func (*UnbindUserAuthDataRelationReqBuilder) Build

func (*UnbindUserAuthDataRelationReqBuilder) UserAuthDataRelation

func (builder *UnbindUserAuthDataRelationReqBuilder) UserAuthDataRelation(userAuthDataRelation *UserAuthDataRelation) *UnbindUserAuthDataRelationReqBuilder

通过该接口,可为指定应用下的指定用户解除一类数据维度。

func (*UnbindUserAuthDataRelationReqBuilder) UserIdType

此次调用中使用的用户ID的类型

示例值:

type UnbindUserAuthDataRelationResp

type UnbindUserAuthDataRelationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*UnbindUserAuthDataRelationResp) Success

func (resp *UnbindUserAuthDataRelationResp) Success() bool

type UserAuthDataRelation

type UserAuthDataRelation struct {
	RootDimensionType *string `json:"root_dimension_type,omitempty"` // 数据类型编码

	SubDimensionTypes []string `json:"sub_dimension_types,omitempty"` // 数据编码列表

	AuthorizedUserIds []string `json:"authorized_user_ids,omitempty"` // 授权人的lark id

	UamsAppId *string `json:"uams_app_id,omitempty"` // uams系统中应用id
}

type UserAuthDataRelationBuilder

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

func NewUserAuthDataRelationBuilder

func NewUserAuthDataRelationBuilder() *UserAuthDataRelationBuilder

func (*UserAuthDataRelationBuilder) AuthorizedUserIds

func (builder *UserAuthDataRelationBuilder) AuthorizedUserIds(authorizedUserIds []string) *UserAuthDataRelationBuilder

授权人的lark id

示例值:on_21f2db9bdbafadeb16cd77b76060d41d

func (*UserAuthDataRelationBuilder) Build

func (*UserAuthDataRelationBuilder) RootDimensionType

func (builder *UserAuthDataRelationBuilder) RootDimensionType(rootDimensionType string) *UserAuthDataRelationBuilder

数据类型编码

示例值:gongsi

func (*UserAuthDataRelationBuilder) SubDimensionTypes

func (builder *UserAuthDataRelationBuilder) SubDimensionTypes(subDimensionTypes []string) *UserAuthDataRelationBuilder

数据编码列表

示例值:zijie

func (*UserAuthDataRelationBuilder) UamsAppId

func (builder *UserAuthDataRelationBuilder) UamsAppId(uamsAppId string) *UserAuthDataRelationBuilder

uams系统中应用id

示例值:uams-tenant-test

type V1 added in v3.1.0

type V1 struct {
	UserAuthDataRelation *userAuthDataRelation // 数据维度
}

func New added in v3.1.0

func New(config *larkcore.Config) *V1

type Vendor

type Vendor struct {
	Id *string `json:"id,omitempty"` // 交易方id,创建交易方时不填,修改交易方时必填

	AdCountry *string `json:"ad_country,omitempty"` // 交易方注册国家

	AdProvince *string `json:"ad_province,omitempty"` // 交易方注册省份

	AdCity *string `json:"ad_city,omitempty"` // 交易方注册城市

	Address *string `json:"address,omitempty"` // 详细地址

	AdPostcode *string `json:"ad_postcode,omitempty"` // 交易方注册地址邮编

	LegalPerson *string `json:"legal_person,omitempty"` // 法人名称

	CertificationType *string `json:"certification_type,omitempty"` // 证件类型

	CertificationId *string `json:"certification_id,omitempty"` // 证件ID

	ContactPerson *string `json:"contact_person,omitempty"` // 联系人

	ContactTelephone *string `json:"contact_telephone,omitempty"` // 联系电话

	ContactMobilePhone *string `json:"contact_mobile_phone,omitempty"` // 联系移动电话

	Fax *string `json:"fax,omitempty"` // 传真

	EMail *string `json:"e_mail,omitempty"` // 邮箱

	Status *int `json:"status,omitempty"` // 状态

	Vendor *string `json:"vendor,omitempty"` // 交易方编码

	VendorText *string `json:"vendor_text,omitempty"` // 交易方名称

	ShortText *string `json:"short_text,omitempty"` // 交易方简称

	VendorType *string `json:"vendor_type,omitempty"` // 交易方类型(多个枚举时,采用逗号分隔)

	VendorCategory *string `json:"vendor_category,omitempty"` // 交易方类别

	VendorNature *string `json:"vendor_nature,omitempty"` // 交易方性质

	LinkedEmployee *string `json:"linked_employee,omitempty"` // 关联员工

	LinkedCustomer *string `json:"linked_customer,omitempty"` // 关联客户

	AssociatedWithLegalEntity *bool `json:"associated_with_legal_entity,omitempty"` // 是否关联法人主体

	ExtendInfo []*ExtendField `json:"extend_info,omitempty"` // 扩展字段相关信息列表,每个扩展字段需要填入【field_code】、【field_type】、【field_value】三个信息,其中【field_code】和【field_type】需要与用户【字段配置】(获取配置字段的开放平台接口:https://open.feishu.cn/open-apis/mdm/v1/config/config_list)中扩展字段(sys = 1)相关联(目前不支持附件类型的扩展信息)

	VendorAccounts []*VendorAccount `json:"vendor_accounts,omitempty"` // 银行账户列表

	VendorAddresses []*VendorAddress `json:"vendor_addresses,omitempty"` // 地址列表

	VendorCompanyViews []*VendorCompanyView `json:"vendor_company_views,omitempty"` // 公司视图列表

	VendorContacts []*VendorContact `json:"vendor_contacts,omitempty"` // 联系人列表

	GlAccount *string `json:"gl_account,omitempty"` // 总账科目

	DownPaymentTerm *string `json:"down_payment_term,omitempty"` // 预付条件

	PaymentTerm *string `json:"payment_term,omitempty"` // 付款条件

	VendorSiteCode *string `json:"vendor_site_code,omitempty"` // 交易方site code

	Appendix []*Appendix `json:"appendix,omitempty"` // 附件列表

	IsRisked *bool `json:"is_risked,omitempty"` // 是否标记风险

	OwnerDepts []string `json:"owner_depts,omitempty"` // 所属部门
}

type VendorAccount

type VendorAccount struct {
	Id *string `json:"id,omitempty"` // 交易方银行账户id,修改信息时当前的账户id均必填,新增的账户id不填

	Account *string `json:"account,omitempty"` // 账号

	Iban *string `json:"iban,omitempty"` // 国际银行账号

	AccountName *string `json:"account_name,omitempty"` // 账户名

	BankId *string `json:"bank_id,omitempty"` // 银行内部Id

	BankCode *string `json:"bank_code,omitempty"` // 银联号

	SwiftCode *string `json:"swift_code,omitempty"` // 银行Swift编码

	VendorSiteCode *string `json:"vendor_site_code,omitempty"` // 交易方siteCode

	BankName *string `json:"bank_name,omitempty"` // 银行名称

	BankAcronym *string `json:"bank_acronym,omitempty"` // 银行简码

	Country *string `json:"country,omitempty"` // 国家

	BankControlCode *string `json:"bank_control_code,omitempty"` // 银行控制码

	ExtendInfo []*ExtendField `json:"extend_info,omitempty"` // 扩展字段相关信息列表
}

type VendorAccountBuilder

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

func NewVendorAccountBuilder

func NewVendorAccountBuilder() *VendorAccountBuilder

func (*VendorAccountBuilder) Account

func (builder *VendorAccountBuilder) Account(account string) *VendorAccountBuilder

账号

示例值:62448345986564434

func (*VendorAccountBuilder) AccountName

func (builder *VendorAccountBuilder) AccountName(accountName string) *VendorAccountBuilder

账户名

示例值:上海xxx技术有限(上海)分公司

func (*VendorAccountBuilder) BankAcronym

func (builder *VendorAccountBuilder) BankAcronym(bankAcronym string) *VendorAccountBuilder

银行简码

示例值:ZJTLCB

func (*VendorAccountBuilder) BankCode

func (builder *VendorAccountBuilder) BankCode(bankCode string) *VendorAccountBuilder

银联号

示例值:308290003732

func (*VendorAccountBuilder) BankControlCode

func (builder *VendorAccountBuilder) BankControlCode(bankControlCode string) *VendorAccountBuilder

银行控制码

示例值:99999999

func (*VendorAccountBuilder) BankId

func (builder *VendorAccountBuilder) BankId(bankId string) *VendorAccountBuilder

银行内部Id

示例值:MDBK00061195

func (*VendorAccountBuilder) BankName

func (builder *VendorAccountBuilder) BankName(bankName string) *VendorAccountBuilder

银行名称

示例值:xx银行股份有限公司苏州支行

func (*VendorAccountBuilder) Build

func (builder *VendorAccountBuilder) Build() *VendorAccount

func (*VendorAccountBuilder) Country

func (builder *VendorAccountBuilder) Country(country string) *VendorAccountBuilder

国家

示例值:CN

func (*VendorAccountBuilder) ExtendInfo

func (builder *VendorAccountBuilder) ExtendInfo(extendInfo []*ExtendField) *VendorAccountBuilder

扩展字段相关信息列表

示例值:

func (*VendorAccountBuilder) Iban

func (builder *VendorAccountBuilder) Iban(iban string) *VendorAccountBuilder

国际银行账号

示例值:46677

func (*VendorAccountBuilder) Id

交易方银行账户id,修改信息时当前的账户id均必填,新增的账户id不填

示例值:1453263653228318721

func (*VendorAccountBuilder) SwiftCode

func (builder *VendorAccountBuilder) SwiftCode(swiftCode string) *VendorAccountBuilder

银行Swift编码

示例值:BOFAUS3NINQ

func (*VendorAccountBuilder) VendorSiteCode

func (builder *VendorAccountBuilder) VendorSiteCode(vendorSiteCode string) *VendorAccountBuilder

交易方siteCode

示例值:99999999

type VendorAddress

type VendorAddress struct {
	Id *string `json:"id,omitempty"` // 交易方地址id

	Country *string `json:"country,omitempty"` // 国家

	Province *string `json:"province,omitempty"` // 省份

	City *string `json:"city,omitempty"` // 城市

	County *string `json:"county,omitempty"` // 县

	Address *string `json:"address,omitempty"` // 详细地址

	ExtendInfo []*ExtendField `json:"extend_info,omitempty"` // 扩展字段相关信息列表
}

type VendorAddressBuilder

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

func NewVendorAddressBuilder

func NewVendorAddressBuilder() *VendorAddressBuilder

func (*VendorAddressBuilder) Address

func (builder *VendorAddressBuilder) Address(address string) *VendorAddressBuilder

详细地址

示例值:北京市海淀区苏州街

func (*VendorAddressBuilder) Build

func (builder *VendorAddressBuilder) Build() *VendorAddress

func (*VendorAddressBuilder) City

func (builder *VendorAddressBuilder) City(city string) *VendorAddressBuilder

城市

示例值:MDCY00000001

func (*VendorAddressBuilder) Country

func (builder *VendorAddressBuilder) Country(country string) *VendorAddressBuilder

国家

示例值:CN

func (*VendorAddressBuilder) County

func (builder *VendorAddressBuilder) County(county string) *VendorAddressBuilder

示例值:MDCA00002746

func (*VendorAddressBuilder) ExtendInfo

func (builder *VendorAddressBuilder) ExtendInfo(extendInfo []*ExtendField) *VendorAddressBuilder

扩展字段相关信息列表

示例值:

func (*VendorAddressBuilder) Id

交易方地址id

示例值:1433488030078558209

func (*VendorAddressBuilder) Province

func (builder *VendorAddressBuilder) Province(province string) *VendorAddressBuilder

省份

示例值:MDPS00000001

type VendorBuilder

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

func NewVendorBuilder

func NewVendorBuilder() *VendorBuilder

func (*VendorBuilder) AdCity

func (builder *VendorBuilder) AdCity(adCity string) *VendorBuilder

交易方注册城市

示例值:MDCY00001226

func (*VendorBuilder) AdCountry

func (builder *VendorBuilder) AdCountry(adCountry string) *VendorBuilder

交易方注册国家

示例值:CN

func (*VendorBuilder) AdPostcode

func (builder *VendorBuilder) AdPostcode(adPostcode string) *VendorBuilder

交易方注册地址邮编

示例值:100100

func (*VendorBuilder) AdProvince

func (builder *VendorBuilder) AdProvince(adProvince string) *VendorBuilder

交易方注册省份

示例值:MDPS00000001

func (*VendorBuilder) Address

func (builder *VendorBuilder) Address(address string) *VendorBuilder

详细地址

示例值:上海市浦东新区世纪大道1000号

func (*VendorBuilder) Appendix

func (builder *VendorBuilder) Appendix(appendix []*Appendix) *VendorBuilder

附件列表

示例值:

func (*VendorBuilder) AssociatedWithLegalEntity

func (builder *VendorBuilder) AssociatedWithLegalEntity(associatedWithLegalEntity bool) *VendorBuilder

是否关联法人主体

示例值:true

func (*VendorBuilder) Build

func (builder *VendorBuilder) Build() *Vendor

func (*VendorBuilder) CertificationId

func (builder *VendorBuilder) CertificationId(certificationId string) *VendorBuilder

证件ID

示例值:913100xxxxx555781R

func (*VendorBuilder) CertificationType

func (builder *VendorBuilder) CertificationType(certificationType string) *VendorBuilder

证件类型

示例值:0

func (*VendorBuilder) ContactMobilePhone

func (builder *VendorBuilder) ContactMobilePhone(contactMobilePhone string) *VendorBuilder

联系移动电话

示例值:+8617621685955

func (*VendorBuilder) ContactPerson

func (builder *VendorBuilder) ContactPerson(contactPerson string) *VendorBuilder

联系人

示例值:李四

func (*VendorBuilder) ContactTelephone

func (builder *VendorBuilder) ContactTelephone(contactTelephone string) *VendorBuilder

联系电话

示例值:021-87853200

func (*VendorBuilder) DownPaymentTerm

func (builder *VendorBuilder) DownPaymentTerm(downPaymentTerm string) *VendorBuilder

预付条件

示例值:PT09

func (*VendorBuilder) EMail

func (builder *VendorBuilder) EMail(eMail string) *VendorBuilder

邮箱

示例值:shunxing@xxx.com

func (*VendorBuilder) ExtendInfo

func (builder *VendorBuilder) ExtendInfo(extendInfo []*ExtendField) *VendorBuilder

扩展字段相关信息列表,每个扩展字段需要填入【field_code】、【field_type】、【field_value】三个信息,其中【field_code】和【field_type】需要与用户【字段配置】(获取配置字段的开放平台接口:https://open.feishu.cn/open-apis/mdm/v1/config/config_list)中扩展字段(sys = 1)相关联(目前不支持附件类型的扩展信息)

示例值:

func (*VendorBuilder) Fax

func (builder *VendorBuilder) Fax(fax string) *VendorBuilder

传真

示例值:021-87853200

func (*VendorBuilder) GlAccount

func (builder *VendorBuilder) GlAccount(glAccount string) *VendorBuilder

总账科目

示例值:22020101

func (*VendorBuilder) Id

func (builder *VendorBuilder) Id(id string) *VendorBuilder

交易方id,创建交易方时不填,修改交易方时必填

示例值:7023646046559404327

func (*VendorBuilder) IsRisked

func (builder *VendorBuilder) IsRisked(isRisked bool) *VendorBuilder

是否标记风险

示例值:false

func (*VendorBuilder) LegalPerson

func (builder *VendorBuilder) LegalPerson(legalPerson string) *VendorBuilder

法人名称

示例值:张三

func (*VendorBuilder) LinkedCustomer

func (builder *VendorBuilder) LinkedCustomer(linkedCustomer string) *VendorBuilder

关联客户

示例值:客户

func (*VendorBuilder) LinkedEmployee

func (builder *VendorBuilder) LinkedEmployee(linkedEmployee string) *VendorBuilder

关联员工

示例值:6959513973725069601

func (*VendorBuilder) OwnerDepts

func (builder *VendorBuilder) OwnerDepts(ownerDepts []string) *VendorBuilder

所属部门

示例值:["7098978978848833836"]

func (*VendorBuilder) PaymentTerm

func (builder *VendorBuilder) PaymentTerm(paymentTerm string) *VendorBuilder

付款条件

示例值:PT08

func (*VendorBuilder) ShortText

func (builder *VendorBuilder) ShortText(shortText string) *VendorBuilder

交易方简称

示例值:王五

func (*VendorBuilder) Status

func (builder *VendorBuilder) Status(status int) *VendorBuilder

状态

示例值:1

func (*VendorBuilder) Vendor

func (builder *VendorBuilder) Vendor(vendor string) *VendorBuilder

交易方编码

示例值:V00108006

func (*VendorBuilder) VendorAccounts

func (builder *VendorBuilder) VendorAccounts(vendorAccounts []*VendorAccount) *VendorBuilder

银行账户列表

示例值:

func (*VendorBuilder) VendorAddresses

func (builder *VendorBuilder) VendorAddresses(vendorAddresses []*VendorAddress) *VendorBuilder

地址列表

示例值:

func (*VendorBuilder) VendorCategory

func (builder *VendorBuilder) VendorCategory(vendorCategory string) *VendorBuilder

交易方类别

示例值:11

func (*VendorBuilder) VendorCompanyViews

func (builder *VendorBuilder) VendorCompanyViews(vendorCompanyViews []*VendorCompanyView) *VendorBuilder

公司视图列表

示例值:

func (*VendorBuilder) VendorContacts

func (builder *VendorBuilder) VendorContacts(vendorContacts []*VendorContact) *VendorBuilder

联系人列表

示例值:

func (*VendorBuilder) VendorNature

func (builder *VendorBuilder) VendorNature(vendorNature string) *VendorBuilder

交易方性质

示例值:0

func (*VendorBuilder) VendorSiteCode

func (builder *VendorBuilder) VendorSiteCode(vendorSiteCode string) *VendorBuilder

交易方site code

示例值:999999

func (*VendorBuilder) VendorText

func (builder *VendorBuilder) VendorText(vendorText string) *VendorBuilder

交易方名称

示例值:张三样例

func (*VendorBuilder) VendorType

func (builder *VendorBuilder) VendorType(vendorType string) *VendorBuilder

交易方类型(多个枚举时,采用逗号分隔)

示例值:1

type VendorCompanyView

type VendorCompanyView struct {
	Id *string `json:"id,omitempty"` // 交易方公司视图id

	CompanyCode *string `json:"company_code,omitempty"` // 公司代码

	GlAccount *string `json:"gl_account,omitempty"` // 总账科目

	VendorSiteCode *string `json:"vendor_site_code,omitempty"` // 交易方sitecode

	PaymentTerm *string `json:"payment_term,omitempty"` // 付款条件信息

	DownPaymentTerm *string `json:"down_payment_term,omitempty"` // 预付条件

	ExtendInfo []*ExtendField `json:"extend_info,omitempty"` // 扩展字段相关信息列表
}

type VendorCompanyViewBuilder

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

func NewVendorCompanyViewBuilder

func NewVendorCompanyViewBuilder() *VendorCompanyViewBuilder

func (*VendorCompanyViewBuilder) Build

func (builder *VendorCompanyViewBuilder) Build() *VendorCompanyView

func (*VendorCompanyViewBuilder) CompanyCode

func (builder *VendorCompanyViewBuilder) CompanyCode(companyCode string) *VendorCompanyViewBuilder

公司代码

示例值:1001

func (*VendorCompanyViewBuilder) DownPaymentTerm

func (builder *VendorCompanyViewBuilder) DownPaymentTerm(downPaymentTerm string) *VendorCompanyViewBuilder

预付条件

示例值:PT08

func (*VendorCompanyViewBuilder) ExtendInfo

func (builder *VendorCompanyViewBuilder) ExtendInfo(extendInfo []*ExtendField) *VendorCompanyViewBuilder

扩展字段相关信息列表

示例值:

func (*VendorCompanyViewBuilder) GlAccount

func (builder *VendorCompanyViewBuilder) GlAccount(glAccount string) *VendorCompanyViewBuilder

总账科目

示例值:22020101

func (*VendorCompanyViewBuilder) Id

交易方公司视图id

示例值:1453263653228318721

func (*VendorCompanyViewBuilder) PaymentTerm

func (builder *VendorCompanyViewBuilder) PaymentTerm(paymentTerm string) *VendorCompanyViewBuilder

付款条件信息

示例值:PT09

func (*VendorCompanyViewBuilder) VendorSiteCode

func (builder *VendorCompanyViewBuilder) VendorSiteCode(vendorSiteCode string) *VendorCompanyViewBuilder

交易方sitecode

示例值:999999

type VendorContact

type VendorContact struct {
	Id *string `json:"id,omitempty"` // 交易方联系人id

	Name *string `json:"name,omitempty"` // 姓名

	Position *string `json:"position,omitempty"` // 职位

	Email *string `json:"email,omitempty"` // 邮箱

	Phone *string `json:"phone,omitempty"` // 手机号

	Remark *string `json:"remark,omitempty"` // 备注

	ExtendInfo []*ExtendField `json:"extend_info,omitempty"` // 扩展字段相关信息列表
}

type VendorContactBuilder

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

func NewVendorContactBuilder

func NewVendorContactBuilder() *VendorContactBuilder

func (*VendorContactBuilder) Build

func (builder *VendorContactBuilder) Build() *VendorContact

func (*VendorContactBuilder) Email

func (builder *VendorContactBuilder) Email(email string) *VendorContactBuilder

邮箱

示例值:haha@xxx.com

func (*VendorContactBuilder) ExtendInfo

func (builder *VendorContactBuilder) ExtendInfo(extendInfo []*ExtendField) *VendorContactBuilder

扩展字段相关信息列表

示例值:

func (*VendorContactBuilder) Id

交易方联系人id

示例值:1433488091906793474

func (*VendorContactBuilder) Name

func (builder *VendorContactBuilder) Name(name string) *VendorContactBuilder

姓名

示例值:张三

func (*VendorContactBuilder) Phone

func (builder *VendorContactBuilder) Phone(phone string) *VendorContactBuilder

手机号

示例值:13333323333

func (*VendorContactBuilder) Position

func (builder *VendorContactBuilder) Position(position string) *VendorContactBuilder

职位

示例值:董事长

func (*VendorContactBuilder) Remark

func (builder *VendorContactBuilder) Remark(remark string) *VendorContactBuilder

备注

示例值:备注

Jump to

Keyboard shortcuts

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