部署
This commit is contained in:
@@ -10,21 +10,22 @@ type clause struct {
|
||||
}
|
||||
|
||||
type ClauseItem struct {
|
||||
Id int64 `json:"id"`
|
||||
Sort int64 `json:"sort"`
|
||||
Key string `json:"key"`
|
||||
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"`
|
||||
Key string `json:"key"`
|
||||
Value string `json:"value"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
// All @TITLE 获取条款
|
||||
func (c *clause) All(ctx context.Context, purchaseId int64) (reply []ClauseItem, err error) {
|
||||
func (c *clause) All(ctx context.Context, purchaseIds []int64) (reply []ClauseItem, err error) {
|
||||
xClient, err := client.GetClient(c)
|
||||
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