service/api/proto/streamerlink/proto/streamerlink_api.go

97 lines
1.6 KiB
Go

package proto
import (
"service/api/base"
"service/dbstruct"
)
// api 创建
type ApiCreateReq struct {
base.BaseRequest
*dbstruct.StreamerLink
}
type ApiCreateData struct {
}
type ApiCreateResp struct {
base.BaseResponse
Data *ApiCreateData `json:"data"`
}
// api 删除
type ApiDeleteReq struct {
base.BaseRequest
Id *int64 `json:"id"`
}
type ApiDeleteData struct {
}
type ApiDeleteResp struct {
base.BaseResponse
Data *ApiDeleteData `json:"data"`
}
// api 更新
type ApiUpdateReq struct {
base.BaseRequest
*dbstruct.StreamerLink
}
type ApiUpdateData struct {
}
type ApiUpdateResp struct {
base.BaseResponse
Data *ApiUpdateData `json:"data"`
}
// api 列表-单个mid
type ApiListByMidReq struct {
base.BaseRequest
Mid *int64 `json:"mid"`
Offset int `json:"offset"`
Limit int `json:"limit"`
Sort []string
}
type ApiListByMidData struct {
List []*dbstruct.StreamerLink `json:"list"`
Offset int `json:"offset"`
More int `json:"more"`
}
type ApiListByMidResp struct {
base.BaseResponse
Data *ApiListByMidData `json:"data"`
}
// api 批量创建
type ApiCreateBatchReq struct {
base.BaseRequest
StreamerLinks []*dbstruct.StreamerLink `json:"streamer_links"`
}
type ApiCreateBatchData struct {
}
type ApiCreateBatchResp struct {
base.BaseResponse
Data *ApiCreateBatchData `json:"data"`
}
// api 批量删除
type ApiDeleteBatchReq struct {
base.BaseRequest
Ids []int64
}
type ApiDeleteBatchData struct {
}
type ApiDeleteBatchResp struct {
base.BaseResponse
Data *ApiDeleteBatchData `json:"data"`
}