| | |
| | | // @Produce application/json |
| | | // @Param data query test.Contract true "用id查询Contract" |
| | | // @Success 200 {string} string "{"success":true,"data":{},"msg":"预览成功"}" |
| | | // @Router /con/previewContract [get] |
| | | // @Router /previewContract [get] |
| | | func (conApi *ContractApi) PreviewContract(c *gin.Context) { |
| | | var con test.Contract |
| | | err := c.ShouldBindQuery(&con) |
| | |
| | | // @Produce application/json |
| | | // @Param data query test.Contract true "用id查询Contract" |
| | | // @Success 200 {string} string "{"success":true,"data":{},"msg":"下载成功"}" |
| | | // @Router /con/downloadContract [get] |
| | | // @Router /downloadContract [get] |
| | | func (conApi *ContractApi) DownloadContract(c *gin.Context) { |
| | | var con test.Contract |
| | | err := c.ShouldBindQuery(&con) |