feat: update tonggao

This commit is contained in:
chashaobao
2025-08-07 00:24:49 +08:00
parent 10e7f39c92
commit 61336b5282
30 changed files with 363 additions and 171 deletions

View File

@ -1,19 +1,15 @@
import { Action } from 'redux';
import { CreateJobInfo } from '@/types/job';
import { SET_JOB_ID } from '../constants';
import { CREATE_JOB } from '../constants';
const INIT_STATE: Partial<CreateJobInfo> = {};
const userInfo = (state: Partial<CreateJobInfo> = INIT_STATE, action: Action): Partial<CreateJobInfo> => {
const jobInfo = (state: Partial<string | null> = null, action: Action): Partial<string | null> => {
const { type, value } = action as BL.Anything;
switch (type) {
case CREATE_JOB:
case SET_JOB_ID:
return value;
default:
return state;
}
};
export default userInfo;
export default jobInfo;