// Path: samples/sample-base/src/main/java/org/treeleafj/xdoc/test/vo/Account.java
// @Data
// public class Account {
// 
//     /**
//      * 账户ID,跟用户ID一致
//      */
//     private String id;
// 
//     /**
//      * 用户余额
//      */
//     private Double balance;
// 
//     /**
//      * 用户积分
//      */
//     private Integer score;
// }


import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.treeleafj.xdoc.test.vo.Account;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Date;
import java.util.UUID;
import java.util.concurrent.Callable;
package org.treeleafj.xdoc.test.controller;



/**
 * 用户账户模块
 *
 * @author leaf
 * @date 2017-03-10 10:43
 */
@Controller
@RequestMapping("api/account")
public class AccountController {

    private Logger log = LoggerFactory.getLogger(AccountController.class);

    /**
     * 获取当前登录用户的账户资产信息,用户不存在会返回code为9999的错误信息,见:https://github.com/treeleafj/xDoc
     *
     * @param type 账户类型(1-普通账户)|必填
     * @param balance 重写@paramObj中AccountEx的balance的注释
     * @paramObj AccountEx
     * @return 用户的资产
     * @title 查询用户资产
     * @resp balance 账户余额|double
     * @see org.treeleafj.xdoc.test.vo.AccountEx
     */
    @ResponseBody
    @RequestMapping(value = "info", method = RequestMethod.POST)
// Path: samples/sample-base/src/main/java/org/treeleafj/xdoc/test/vo/Account.java
// @Data
// public class Account {
// 
//     /**
//      * 账户ID,跟用户ID一致
//      */
//     private String id;
// 
//     /**
//      * 用户余额
//      */
//     private Double balance;
// 
//     /**
//      * 用户积分
//      */
//     private Integer score;
// }


// Path: samples/sample-springboot/src/main/java/org/treeleafj/xdoc/test/controller/AccountController.java
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.treeleafj.xdoc.test.vo.Account;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Date;
import java.util.UUID;
import java.util.concurrent.Callable;

package org.treeleafj.xdoc.test.controller;



/**
 * 用户账户模块
 *
 * @author leaf
 * @date 2017-03-10 10:43
 */
@Controller
@RequestMapping("api/account")
public class AccountController {

    private Logger log = LoggerFactory.getLogger(AccountController.class);

    /**
     * 获取当前登录用户的账户资产信息,用户不存在会返回code为9999的错误信息,见:https://github.com/treeleafj/xDoc
     *
     * @param type 账户类型(1-普通账户)|必填
     * @param balance 重写@paramObj中AccountEx的balance的注释
     * @paramObj AccountEx
     * @return 用户的资产
     * @title 查询用户资产
     * @resp balance 账户余额|double
     * @see org.treeleafj.xdoc.test.vo.AccountEx
     */
    @ResponseBody
    @RequestMapping(value = "info", method = RequestMethod.POST)
    Account info(String type) {