package com.leanwo.activiti.rest.db;

import java.util.List;

import javax.inject.Inject;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.leanwo.activiti.db.AccountService;
import com.leanwo.activiti.dto.base.KeyValue;

/**
 * 
 * 工作流服务
 * 
 * @author YangZhiJie
 *
 */
@RestController
@RequestMapping("/workflow-system/AccountResource1")
public class AccountResource1 {
	
	@Inject
	private AccountService accountService;

	/**
	 * 获取当前时间的毫秒数
	 * @return
	 */
	@RequestMapping(value = "/getAccounts", method = RequestMethod.GET, produces = "application/json")
	public List<KeyValue> getAccounts(){
		return accountService.getAccounts();
	}

}