XiaoDaiGua-Ray 59c1090ea4
feat(fullstack): add optional backend and source distributions
Add the NestJS backend with PostgreSQL and Redis, local setup, and
independent frontend and fullstack source archives.

Enforce permissions across redirects, let users dismiss the 403 page,
and restore missing translation warnings in development.
2026-11-06 19:53:49 +08:00

11 lines
408 B
TypeScript

import type { PersonListParams } from '@ray-template/api-contracts/demo'
import { listPeople as queryPeople } from '@ray-template/demo-data/people'
export type { Person, PersonListParams } from '@ray-template/api-contracts/demo'
export const listPeople = (params: PersonListParams = {}) => {
const { items, total } = queryPeople(params)
return { code: 200, msg: '请求成功', data: items, total }
}