@Override
    public void encode(BsonWriter writer, T value) {
        writer.writeInt32(value.ordinal());
    }
@author James Chen
@implNote encode as an integer rather than in string to reduce size and improve performance
turms-server-common/src/main/java/im/turms/server/common/storage/mongo/codec/EnumNumberCodec.java