CompanyController.java 719 Bytes
package com.bsth.controller.basic;

import com.bsth.common.Constants;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by panzhao on 2017/8/2.
 */
@RestController
@RequestMapping("company_json")
public class CompanyController {


    @RequestMapping
    public String get(){
        return Constants.authJsonStr;
    }

    @RequestMapping(value = "curr_tcc_info")
    public Map<String, String> getTccName(){
        Map<String, String> map = new HashMap<>();
        map.put("name", Constants.tccName);
        map.put("code", Constants.tccCode);
        return map;
    }
}