29 lines
573 B
Go
29 lines
573 B
Go
package ik3cloud
|
|
|
|
import (
|
|
"context"
|
|
|
|
"git.kumo.work/shama/service/client"
|
|
"git.kumo.work/shama/service/ik3cloud/constant"
|
|
)
|
|
|
|
type information struct {
|
|
}
|
|
|
|
type InformationSaveItem struct {
|
|
InformationId int64
|
|
Number string
|
|
Value string
|
|
Type constant.InformationType // 资料类型
|
|
}
|
|
|
|
// Save @TITLE 保存
|
|
func (i *information) Save(ctx context.Context, args []InformationSaveItem) (entities []Entity, err error) {
|
|
xClient, err := client.GetClient(i)
|
|
if err != nil {
|
|
return
|
|
}
|
|
err = xClient.Call(ctx, "Save", args, &entities)
|
|
return
|
|
}
|