Discover Packages
github.com/hdget/common
io
package
Version:
v0.1.21
Opens a new window with list of versions in this module.
Published: Dec 22, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type BulkOperateObjectRequest struct {
Ids []int64 `json:"ids,omitempty"`
Sns []string `json:"sns,omitempty"`
Names []string `json:"names,omitempty"`
}
type CreateObjectResponse struct {
Id int64 `json:"id"`
}
type CreateRefObjectRequest[BizObject any ] struct {
Id int64 `json:"id"`
Item BizObject `json:"item"`
}
type DeleteRefObjectRequest struct {
Id int64 `json:"id"`
ItemId int64 `json:"itemId"`
}
type EditRefObjectRequest[BizObject any ] struct {
Id int64 `json:"id"`
Item BizObject `json:"item"`
}
type GetRefObjectRequest struct {
Id int64 `json:"id"`
ItemId int64 `json:"itemId"`
}
type OperateObjectRequest struct {
Id int64 `json:"id,omitempty"`
Sn string `json:"sns,omitempty"`
Name string `json:"name,omitempty"`
}
type QueryObjectRequest struct {
Filters map[string ]any `json:"filters,omitempty"`
List *protobuf .ListParam `json:"list,omitempty"`
}
type QueryObjectResponse[BizObject any ] struct {
Total int64 `json:"total"`
Items []BizObject `json:"items"`
}
type QueryRefObjectRequest struct {
Id int64 `json:"id"`
Filters map[string ]any `json:"filters,omitempty"`
List *protobuf .ListParam `json:"list,omitempty"`
}
type QueryRefObjectResponse[BizObject any ] struct {
Total int64 `json:"total"`
Items []BizObject `json:"items"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.