mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 05:29:51 +00:00
35 lines
706 B
Go
35 lines
706 B
Go
package safeline
|
|
|
|
type BaseResponse interface {
|
|
GetErrCode() *string
|
|
GetErrMsg() *string
|
|
}
|
|
|
|
type baseResponse struct {
|
|
ErrCode *string `json:"err,omitempty"`
|
|
ErrMsg *string `json:"msg,omitempty"`
|
|
}
|
|
|
|
func (r *baseResponse) GetErrCode() *string {
|
|
return r.ErrCode
|
|
}
|
|
|
|
func (r *baseResponse) GetErrMsg() *string {
|
|
return r.ErrMsg
|
|
}
|
|
|
|
type UpdateCertificateRequest struct {
|
|
Id int32 `json:"id"`
|
|
Type int32 `json:"type"`
|
|
Manual *UpdateCertificateRequestBodyManul `json:"manual"`
|
|
}
|
|
|
|
type UpdateCertificateRequestBodyManul struct {
|
|
Crt string `json:"crt"`
|
|
Key string `json:"key"`
|
|
}
|
|
|
|
type UpdateCertificateResponse struct {
|
|
baseResponse
|
|
}
|