package ik3cloud import ( "context" "git.kumo.work/shama/service/client" ) type custom struct { } type ArgsCustomSave struct { CustomId int64 // 客户id Number string // 编码 Name string // 名称 ShortName string // 简称 Address string // 地址 ZipCode string // 邮编 Website string // 网站 Tel string // 电话 Fax string // 传真 Contacts []CustomItem } type CustomItem struct { ContactNumber string // 联系人编号 Name string // 部门名称 Sex string // 性别 Job string // 职位 Tel string // 电话 Phone string // 手机 Fax string // 传真 Email string // 邮箱 IsDefault bool // 是否默认/主联系人 } // Save @TITLE 保存客户 func (c *custom) Save(ctx context.Context, args ArgsCustomSave) (entity Entity, err error) { xClient, err := client.GetClient(c) if err != nil { return } err = xClient.Call(ctx, "Save", args, &entity) return }