message_subscribe.api 1.8 KB

syntax = "v1"

info(
    title: "xx实例"
    desc: "xx实例"
    author: "author"
    email: "email"
    version: "v1"
)

@server(
    prefix: message_subscribe/v1
    group: message_subscribe
    jwt: JwtAuth
)
service Core {
    @handler getMessageSubscribe
    post /message_subscribe/:id (MessageSubscribeGetRequest) returns (MessageSubscribeGetResponse)
    @handler saveMessageSubscribe
    post /message_subscribe (MessageSubscribeSaveRequest) returns (MessageSubscribeSaveResponse)
    @handler deleteMessageSubscribe
    delete /message_subscribe/:id (MessageSubscribeDeleteRequest) returns (MessageSubscribeDeleteResponse)
    @handler updateMessageSubscribe
    put /message_subscribe/:id (MessageSubscribeUpdateRequest) returns (MessageSubscribeUpdateResponse)
    @handler searchMessageSubscribe
    post /message_subscribe/search (MessageSubscribeSearchRequest) returns (MessageSubscribeSearchResponse)
}

type (
    MessageSubscribeGetRequest {
		Id int64 `path:"id"`
	}
    MessageSubscribeGetResponse struct{
		MessageSubscribe MessageSubscribeItem `json:"message_subscribe"`
    }

	MessageSubscribeSaveRequest struct{
		MessageSubscribe MessageSubscribeItem `json:"message_subscribe"`
    }
    MessageSubscribeSaveResponse struct{}

	MessageSubscribeDeleteRequest struct{
        Id int64 `path:"id"`
    }
    MessageSubscribeDeleteResponse struct{}

	MessageSubscribeUpdateRequest struct{
		Id int64 `path:"id"`
        MessageSubscribe MessageSubscribeItem `json:"message_subscribe"`
    }
    MessageSubscribeUpdateResponse struct{}

 	MessageSubscribeSearchRequest struct{
         Page int  `json:"page"`
         Size int  `json:"size"`
    }
    MessageSubscribeSearchResponse{
        List []MessageSubscribeItem  `json:"list"`
        Total int64 `json:"total"`
    }
	MessageSubscribeItem struct{
	
	}
)