service/api/proto/app_config/proto/app_config_op.go

64 lines
923 B
Go

package proto
import (
"service/api/base"
"service/dbstruct"
)
// op 创建
type OpCreateReq struct {
base.BaseRequest
*dbstruct.AppConfig
}
type OpCreateData struct {
}
type OpCreateResp struct {
base.BaseResponse
Data *OpCreateData `json:"data"`
}
// op 删除
type OpDeleteReq struct {
base.BaseRequest
Id int64 `json:"id"`
}
type OpDeleteData struct {
}
type OpDeleteResp struct {
base.BaseResponse
Data *OpDeleteData `json:"data"`
}
// op 更新
type OpUpdateReq struct {
base.BaseRequest
*dbstruct.AppConfig
}
type OpUpdateData struct {
}
type OpUpdateResp struct {
base.BaseResponse
Data *OpUpdateData `json:"data"`
}
// op 列表
type OpListByKeyReq struct {
base.BaseRequest
ConfigKey string `json:"config_key"`
}
type OpListByKeyData struct {
AppConfig *dbstruct.AppConfig `json:"app_config"`
}
type OpListByKeyResp struct {
base.BaseResponse
Data *OpListByKeyData `json:"data"`
}