@@ -38,6 +38,45 @@ register('GET', endpoints.showUserDetails, ({ params }) => ({
|
||||
data: findOrThrow(adminUsers, params.id),
|
||||
}))
|
||||
|
||||
register('GET', endpoints.getUserRegisterData, ({ params }) => {
|
||||
const user = findOrThrow(adminUsers, params.id)
|
||||
return {
|
||||
success: true,
|
||||
message: 'OK',
|
||||
data: [
|
||||
{ key: 'educationStatus', value: 'seminary_student' },
|
||||
{ key: 'seminaryLevel', value: 'level_3' },
|
||||
{ key: 'universityLevel', value: 'not_applicable' },
|
||||
{ key: 'universityName', value: 'حوزه علمیه قم' },
|
||||
{ key: 'fieldOfStudy', value: 'فقه و اصول' },
|
||||
{ key: 'workExperienceSummary', value: 'پنج سال تدریس در مدرسه دینی.' },
|
||||
{ key: 'activitySummary', value: 'برگزاری جلسات قرآن و حدیث به صورت هفتگی.' },
|
||||
{ key: 'specializedTopics', value: 'تربیت دینی نوجوانان' },
|
||||
{ key: 'propagationExperienceYears', value: 6 },
|
||||
{ key: 'propagationMethodDescription', value: 'محوریت بیان داستانهای قرآنی.' },
|
||||
{
|
||||
key: 'propagationPlatforms',
|
||||
value: [
|
||||
{ platform: 'home_gathering_regular', platform_details: null },
|
||||
{ platform: 'online', platform_details: 'کانال اینستاگرام @example' },
|
||||
],
|
||||
},
|
||||
{ key: 'responseToLowSatisfaction', value: 'change_the_method' },
|
||||
{ key: 'responseToSessionCancellation', value: 'teach_how_to_reduce_costs' },
|
||||
{ key: 'responseToAudienceConflict', value: 'divide_the_crowd' },
|
||||
{ key: 'responseToCompetingPropagator', value: 'strengthen_yourself' },
|
||||
{ key: 'responseToCompetingPropagatorDescription', value: null },
|
||||
{ key: 'relevantCertificates', value: 'سطح ۳ حوزوی، تدریس قرآن' },
|
||||
{ key: 'hijabApproach', value: 'گفتگوی همدلانه و آموزشمحور.' },
|
||||
{ key: 'provinceId', value: user.address?.province?.id ?? 1 },
|
||||
{ key: 'cityId', value: user.address?.city?.id ?? 101 },
|
||||
{ key: 'address', value: user.address?.address || 'تهران، خیابان نمونه' },
|
||||
{ key: 'avatar', value: null },
|
||||
{ key: 'avatarId', value: null },
|
||||
],
|
||||
}
|
||||
})
|
||||
|
||||
register('POST', endpoints.addNewUser, ({ data }) => {
|
||||
const id = makeId()
|
||||
const roleByName = (n) => roles.find((r) => r.name === n)
|
||||
|
||||
Reference in New Issue
Block a user