Prognosis Negative
- Star rating
- 2.66
- Rating
- PG-13
- Year
- 2021
- Genre
- Comedy
- Runtime
- 1h 46m
- Cast
- Simon Pegg, Zach Galifianakis
syntax = "proto3";
service OrderService {
option (hope.swagger.svc) =
{ path: "/order"; description: "Order Service"; }
rpc Place (PlaceOrderRequest)
returns (OrderPlacedResponse) {
option (hope.swagger.operation) = {
get: "/place";
description: "place a new order";
};
}
rpc Query (QueryOrderRequest)
returns (OrderView) {
option (hope.swagger.operation) = {
get: "/query";
pageable: true;
description: "query all live order";
};
}
}
1syntax = "proto3";23service OrderService {45 rpc Place (PlaceOrderRequest)6 returns (OrderPlacedResponse) {7 option (hope.swagger.operation) = {8 get: "/place";9 10 description: "place a new order";11 };12 }13}14
gradlew clean build -x test -w -x stubTest
syntax = "proto3";
import "";
message Movie {
string name = 1 [(hope.swagger.field) = {
description: "name of the movie";
example: "The Lord of the Rings"
empty: FALSE;
mock: { nature: MOVIE }
max_length: { value: 64 }
}];
MovieLevel level = 2 [(hope.swagger.field) = {
description: "level of the movie";
example: "PG_13"
empty: FALSE;
}];
uint32 year = 3 [(hope.swagger.field) = {
description: "publish year";
example: "2022"
}];
}
syntax = "proto3";
message Movie {
string name = 1 [(hope.persistence.column) = {
name: "NAME", description: "Name of the movie",
type: VARCHAR, length: { value: 64}
}];
string description = 2 [(hope.persistence.column) = {
name: "DESCRIPTION", description: "description of the movie",
type: VARCHAR, length: { value: 255 }
}];
MovieLevel level = 3 [(hope.persistence.column) = {
name: "LEVEL", enum_type: STRING,
type: VARCHAR, length: { value: 16 }
}];
option (hope.persistence.table) = {
name: "MOVIE", description: "Movie",
wires: [IDENTIFIABLE, AUDITABLE]
};
}
<createTable remarks="Movie" tableName="MOVIE"> <column name="ID" type="BIGINT" autoIncrement="true"> <constraints nullable="false" primaryKey="true" unique="true"></constraints> </column> <column name="NAME" type="VARCHAR(64)" remarks="name of the movie"> <constraints nullable="false"></constraints> </column> <column name="DESCRIPTION" type="VARCHAR(255)" remarks="description of the movie"> <constraints nullable="false"></constraints> </column> <column name="CREATED" type="TIMESTAMP" remarks="Record deleted at"></column></createTable>
ApiHug让你走得更快、更远
利用专业开发工具、直观的设计工具和代码生成,快速开发企业级组件;
现代化、轻量级的Java框架最大程度地提升了开发者在一个集成、强大的企业平台上的效能
。