perf: avatar

This commit is contained in:
archer
2023-05-29 23:40:22 +08:00
parent 2fc31a706d
commit d36a7cb177
15 changed files with 34 additions and 18 deletions

View File

@@ -2,6 +2,7 @@ import { Schema, model, models, Model } from 'mongoose';
import { hashPassword } from '@/service/utils/tools';
import { PRICE_SCALE } from '@/constants/common';
import { UserModelSchema } from '@/types/mongoSchema';
const UserSchema = new Schema({
username: {
// 可以是手机/邮箱,新的验证都只用手机