26 lines
421 B
Go
26 lines
421 B
Go
package erp
|
|
|
|
import (
|
|
"context"
|
|
|
|
"git.kumo.work/shama/service/client"
|
|
)
|
|
|
|
type transfer struct {
|
|
}
|
|
|
|
type TransferItem struct {
|
|
Key string `json:"key"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// Types @TITLE 打款类型
|
|
func (t *transfer) Types(ctx context.Context) (reply []TransferItem, err error) {
|
|
xClient, err := client.GetClient(t)
|
|
if err != nil {
|
|
return
|
|
}
|
|
err = xClient.Call(ctx, "ExportData", 0, &reply)
|
|
return
|
|
}
|