info (
title: "type title here"
desc: "type desc here"
author: "type author here"
email: "type email here"
version: "type version here"
)
type request {
// TODO: add members here and delete this comment
A [5]uint8 json:"a"
}
type request2 {
// TODO: add members here and delete this comment
A []uint8 json:"a"
}
type response {}
@server (
group: template
)
service template {
@handler handlerName // TODO: replace handler name and delete this comment
post /users/id (request) returns (response)
@handler handlerName2 // TODO: replace handler name and delete this comment
post /users/id2 (request2) returns (response)
github.com/zeromicro/go-zero v1.6.6
syntax = "v1"
info ( title: "type title here" desc: "type desc here" author: "type author here" email: "type email here" version: "type version here" )
type request { // TODO: add members here and delete this comment A [5]uint8
json:"a"
}type request2 { // TODO: add members here and delete this comment A []uint8
json:"a"
}type response {}
@server ( group: template ) service template { @handler handlerName // TODO: replace handler name and delete this comment post /users/id (request) returns (response)
}
Array not work
Slice work