package data // ApiMethod 接口请求方法 type ApiMethod string const ( ApiMethodGet ApiMethod = "GET" // GET请求 ApiMethodPost ApiMethod = "POST" // POST请求 ApiMethodPut ApiMethod = "PUT" // PUT请求 ApiMethodDelete ApiMethod = "DELETE" // DELETE请求 ApiMethodPatch ApiMethod = "PATCH" // PATCH请求 ApiMethodHead ApiMethod = "HEAD" // HEAD请求 ApiMethodOptions ApiMethod = "OPTIONS" // OPTIONS请求 ) func (m ApiMethod) String() string { return string(m) }