部署
This commit is contained in:
@@ -10,20 +10,21 @@ type annotations struct {
|
||||
}
|
||||
|
||||
type AnnotationsItem struct {
|
||||
Id int64 `json:"id"`
|
||||
Sort int64 `json:"sort"`
|
||||
Value string `json:"value"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
Id int64 `json:"id"`
|
||||
PurchaseId int64 `json:"purchaseId"`
|
||||
Sort int64 `json:"sort"`
|
||||
Value string `json:"value"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
// All @TITLE 获取附注
|
||||
func (a *annotations) All(ctx context.Context, purchaseId int64) (reply []AnnotationsItem, err error) {
|
||||
func (a *annotations) All(ctx context.Context, purchaseIds []int64) (reply []AnnotationsItem, err error) {
|
||||
xClient, err := client.GetClient(a)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
err = xClient.Call(ctx, "All", purchaseId, &reply)
|
||||
err = xClient.Call(ctx, "All", purchaseIds, &reply)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user