api.hbs 612 B

123456789101112131415161718192021
  1. import request from '@/utils/request'
  2. export function create{{pascalCase name}}(data: any) {
  3. return request.post('/create{{pascalCase name}}', data)
  4. }
  5. export function update{{pascalCase name}}(data: any) {
  6. return request.post('/update{{pascalCase name}}', data)
  7. }
  8. export function del{{pascalCase name}}(data: any) {
  9. return request.post('/delete{{pascalCase name}}', data)
  10. }
  11. export function find{{pascalCase name}}(data: any) {
  12. return request.get('/find{{pascalCase name}}', data)
  13. }
  14. export function get{{pascalCase name}}List(data?: any) {
  15. return request.get('/get{{pascalCase name}}List', data)
  16. }